List Utils Sorting Issue


I have a ListView component that I am sorting via List Utils extension. The List Utils Sort works and sorts the ListView.

The problem is that when I touch an item in the ListView, the index is not the correct sorted index.

For example if I have:

and I add an item to the list:

After the sort the listview correctly shows:

When I touch 2222 index for item 3333 is captured because that was the previous index for 3333.

When I touch 3333 in this listview, the index is 3 for 2222.

So it seems the listview is sorted correctly but the listview indexes are not aware of the sort.

Is there a way to update the listview indexes with the new sort order?


you can sort lists, but not listviews
therefore after sorting the list, you have to display the new sorted list in the listview

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.





This seems to have fixed it. I emptied the ListView then populated it with the sorted List.2019-04-12_142613