I encounter this issue a lot.
When sorting 2 lists that don’t come from the same source:
- Contain different elements eg. schedules and phases
- Contain same elements but from different sources eg. shedules from “all elements of category” and “currently sellected”
Or any other different source.
In those cases when sorting 2 lists by same keys the order doesn’t match:
In this case I just used sortByFunction (functione: element.name) but in some cases that’s not an option and I just want to sort by key like substring and both lists sort in different ways.
Any idea how to keep them sorting in the same order when for example sorting 2 lists by name substring?