Changed order_by query to db column name

For easy injection to the corresponding function call.