Posted 12 October 2017, 9:12 pm EST
Hi!
I have an issue sorting my list. When I attach the method to the ‘sortComparer’ property in CollectionView, I expect the method to be executed but it’s not. The only way I can achieve sorting is by putting the conditions into ‘sortDescriptions’ array which is also part of the CollectionView. The ‘filter’ method is working but ‘sortComparer’ is not. Am I missing something there?
I am using Angular4 with Typescript.
This works:
dataList.filter = this.filterExecute.bind(this);
but this doesn’t:
dataList.sortComparer = this.sortExecute.bind(this);
Can you help me with that?
Thank you very much!