resolve: {
statusData: function(crmApi) {
- return crmApi('System', 'check', {sequential: 1, options: {limit: 0}});
+ return crmApi('System', 'check', {sequential: 1, options: {limit: 0, sort: 'severity_id DESC'}});
}
}
});
// Refresh the list. Optionally execute api calls first.
function refresh(apiCalls, title) {
title = title || 'Untitled operation';
- apiCalls = (apiCalls || []).concat([['System', 'check', {sequential: 1, options: {limit: 0}}]]);
+ apiCalls = (apiCalls || []).concat([['System', 'check', {sequential: 1, options: {limit: 0, sort: 'severity_id DESC'}}]]);
$('#crm-status-list').block();
crmApi(apiCalls, true)
.then(function(results) {