fix for reverse_sql_order using regexp (for details of bug see pull request #8225)
unfortunately it doesn't work properly you could try next:
id asc, MAX(IFNULL(1,0), owned_essay_id)
MAX(IFNULL(1,0), owned_essay_id) DES
fix regexp for reverse order with functions
@shemerey fair point, i had an error in the regexp. fixed
Did this ever go anywhere? Is it still an issue for active record 4?
yep it's still issue for active record
Thanks, but we've rejected similar PRs in the past. We do not want to end up having to parse the SQL here, as it's slow and error prone. reorder exists for these cases.