simplify sort api