[SOLVED] Does the Sort operator perform a stable sort?
tennenrishin
New Altair Community Member
Answers
-
Hi,
the sort operator uses the Collections.sort() method from Java. From the Java API it says:
So yes, the sorting is stable.
This sort is guaranteed to be stable: equal elements will not be reordered as a result of the sort.
Best,
Nils0 -
Thank you Nils!0