@@ -78,7 +78,7 @@
and id.option_code not in ('CZ','CZMAX','CZMIN')
</where>
- order by oer.organization_id,i.id,id.child_code,id.option_code desc
+ order by oer.organization_id,dd.data_key,i.id,id.child_code,id.option_code desc
</select>
@@ -75,7 +75,7 @@
- order by oer.organization_id,i.id desc
+ order by oer.organization_id,dd.data_key,i.id desc