Allow query result ordering by arbitrary parameters