Smart-Table icon indicating copy to clipboard operation
Smart-Table copied to clipboard

Sort Question (Secondary sort criteria)

Open nizarl opened this issue 8 years ago • 0 comments
trafficstars

This is only a question. -Thanks in advance.

How would you recommend to use the sort getter if there is a primary and secondary sort.

Example: If the below criteria has 2 of the same values I would like to use another value to do secondary sort. Both values are available inside this function.

In this example if firstName is the same I would like secondary sort by age.

scope.getters={ firstName: function (value) { return value.firstName; } }

nizarl avatar Sep 08 '17 18:09 nizarl