List Utils Sorting Issue


#1

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:
1111
3333

and I add an item to the list:
2222

After the sort the listview correctly shows:
1111
2222
3333

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?


#2

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.

Taifun


#3

2019-04-12_141859


#4

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