0

What is want to do is exactly this: mysql SQL: specific item to be first and then to sort the rest of the items but for ActiveRecord.

Going by the solution for mySql provided in above question, i tried:

.order('user_id = 9 DESC')

but it didn't worked. Please help

Community
  • 1
  • 1
shivam
  • 16,048
  • 3
  • 56
  • 71
  • what did it do instead? what does the generated query look like? – user3334690 Jul 10 '14 at 14:51
  • did you try any of the other answers in [this question](http://stackoverflow.com/a/5418087/3334690)... notably Amadan's or Dumitrescu Bogdan's? – user3334690 Jul 10 '14 at 14:58
  • @user3334690 i am extremely sorry. It does exactly what it should have done. Thanks for your help. If you want to write a detailed answer please do, I'll close this question. Thanks – shivam Jul 10 '14 at 15:00
  • it happens to all of us... you could just delete the question if you want – user3334690 Jul 10 '14 at 16:18

0 Answers0