Sort does not work when listing a table


Description

When listing a table, for example cmdb_ci, the sort is not working for any field in the list.  
No system property [/sys_properties_list.do] or user preference [sys_user_preference_list.do] were found that could be affecting the sort on the table or tables.  

 

 

Cause

A custom Before Query Business Rule was created to sort that table in an specific way.  
An example of the code could be:

 

(function executeRule(current, previous /*null when async*/) {

var query = 'ORDERBYlocation^ORDERBYname';
current.addEncodedQuery(query);

})(current, previous); 

 

 

 

 

Resolution

Evaluate if the Before Query Business Rule is still valid or de-activate it.