Thank you for the detailed feedback.
The described behavior is by design, and the reasoning behind is that when unsorting (returning to the initial ordering of the data collection is bound to) is allowed (this can be controlled via the allowUnsort sort setting
), the sorted data needs to be returned to the initial state (unsorted), and this is why we provided an opportunity for the developer to get notified that the data should be unsorted by some column.
However, you are making a valid point, and we will discuss how to best handle the issue - whether by changing the current behavior, or by changing the type definition of the SortDescriptor
to allow other values than 'asc
' and 'desc
' for the dir