order by case when 可以
数据集order by 啊
排序的话,就只能按照指标 正序或者倒序 ,可以参考下这个文档
https://help.fanruan.com/finereport/doc-view-2332.html
需求最好具体一点