11-06-2013 06:41 AM
I have a GroupdataModel and a listview for it. The data is grouped with keys (1 and 2) and is sorted accroding to entries' unique id. I want to give opportunity to users to choose how to sort the data. Is it possible, let's say, group data in descending order (group 2 first) and the actual data under group in ascending order (ids' as keys)?
11-07-2013 05:35 PM
Yes - it is possible - but requires some extra manipulation.
Add a secondary property to your object - that is either the inverse of the value (eg: - the value) or a predetermined reverse sort of the values.