handle non-numeric types in .order_by