15.11. order by 子句

优质
小牛编辑
131浏览
2023-12-01

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

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

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