Fixing #5 by updating more specific SQL order subquery.