0 and unit.sort_number <> 9999 then 0 else 1 end asc, case when unit.sort_number is not null and unit.sort_number > 0 and unit.sort_number <> 9999 then unit.sort_number else null end asc, unit.create_time desc, unit.unitid desc ]]>