14.10. order by子句

查询返回的列表(list)可以按照一个返回的类或组件(components)中的任何属性(property)进行排序:

  1. from DomesticCat cat
  2. order by cat.name asc, cat.weight desc, cat.birthdate

可选的ascdesc关键字指明了按照升序或降序进行排序.