Statistical categories will be alphabetized first by library and then byt category.
The entires within each category will also be alphabetizes
service.get_statcats = function(orgs) {
return egCore.pcrud.search('asc',
{owner : orgs},
- { flesh : 1,
+ { flesh : 2,
flesh_fields : {
- asc : ['owner','entries']
- }
+ asc : ['owner','entries'],
+ asce : ['value']
+ },
+ order_by : [{'class':'asc', 'field':'owner'},{'class':'asc', 'field':'name'},{'class':'asce', 'field':'value'} ]
},
{ atomic : true }
);