• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you sort!?

#2
[eluser]mattpointblank[/eluser]
Add an optional argument to your controller indicating how to sort (eg by score descending, or ascending, etc). Send this argument to your model when fetching comments and order your query by it accordingly.


Messages In This Thread
How do you sort!? - by El Forum - 05-25-2010, 10:03 AM
How do you sort!? - by El Forum - 05-25-2010, 10:05 AM
How do you sort!? - by El Forum - 05-25-2010, 10:14 AM
How do you sort!? - by El Forum - 05-25-2010, 11:03 AM
How do you sort!? - by El Forum - 05-25-2010, 02:09 PM
How do you sort!? - by El Forum - 05-25-2010, 02:18 PM
How do you sort!? - by El Forum - 05-25-2010, 02:56 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.