Allow ordering by sql column