mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
platform: add notice that sort is not stable
This commit is contained in:
@@ -1855,6 +1855,9 @@ public class ContainerUtil extends ContainerUtilRt {
|
||||
return sorted(list, Comparator.naturalOrder());
|
||||
}
|
||||
|
||||
/**
|
||||
* @apiNote this sort implementation is NOT stable for element.length < INSERTION_SORT_THRESHOLD
|
||||
*/
|
||||
public static <T> void sort(@NotNull T[] a, @NotNull Comparator<? super T> comparator) {
|
||||
int size = a.length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user