Aggregate Model ORDER BY

Please don’t use JS. You need to put the full function and field name in the model sort property, instead of the alias.

So if you are aggregating the SUM of Annual Revenue - your sort order statement on the model would be : “SUM(AnnualRevenue) Desc Nulls Last”

If you are grouping by Created Date (Calendar Year) - your sort order statement would be: “CALENDAR_YEAR(CreatedDate) DESC”

If you are grouping by a field - with no function - just use the salesforce field API name (rather than the aggregation alias).

Skuid does have actions that do client side sorting. You can set those up to run on page load or on requery - but ideally you can get the sorting you need server side.