scarhand Posted November 19, 2008 Share Posted November 19, 2008 is this correct practice? "rating" is an int, "views" is an int i want it to sort by highest rating first, then by highest viewcount "ORDER BY rating DESC, views DESC" Quote Link to comment https://forums.phpfreaks.com/topic/133283-order-by-rating-desc-views-desc/ Share on other sites More sharing options...
corbin Posted November 19, 2008 Share Posted November 19, 2008 That should be valid/ok. Quote Link to comment https://forums.phpfreaks.com/topic/133283-order-by-rating-desc-views-desc/#findComment-693200 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.