The previous example is about the case when you want to sort numbers in columns on the grid.

Also, please note that the sorting can be done from UI. Then you can call flexmonster.getReport() API call to get the report object with all the settings and you can examine it to find out how the change from UI is stored in the report object.

Hello David and all Flexmonster users,This updated sample shows how to create a calculated field in version 2.3: https://jsfiddle.net/flexmonster/ve4hp3ez/. Starting from version 2.3, the structure of Report Object was changed. columnSorting property was renamed to slice.sorting.column. Descending sorting for a variable in the column is defined the following way: