8191429: List.sort should specify the sort is stable

Reviewed-by: smarks
This commit is contained in:
Paul Sandoz 2017-11-17 09:29:47 -08:00
parent d61c1efed9
commit 4c4d212355

@ -442,7 +442,8 @@ public interface List<E> extends Collection<E> {
/**
* Sorts this list according to the order induced by the specified
* {@link Comparator}.
* {@link Comparator}. The sort is <i>stable</i>: this method must not
* reorder equal elements.
*
* <p>All elements in this list must be <i>mutually comparable</i> using the
* specified comparator (that is, {@code c.compare(e1, e2)} must not throw