In my Rails app I\'ve run into an issue a couple times that I\'d like to know how other people solve:
I have certain records where a value is optional, so some recor
Photo.order('collection_id DESC NULLS LAST')
I know this is an old one but I just found this snippet and it works for me.