Allow ordering by raw sql