可以使用单排序,也可以使用多排序:
对象 |
描述 |
Column column1 = new Column("a","type"); new Order(column1, Order.ASC); |
ORDER BY a.type ASC |
new MultiOrder().asc("type").desc("id"); |
ORDER BY type ASC, id DESC |
Column column1 = new Column("a","type"); Column column2 = new Column("b","id"); new MultiOrder().asc(column1).desc(column2); |
ORDER BY a.type ASC, b.id DESC |