Get rid of platform differences in MutableList.sort() doc

This commit is contained in:
Abduqodiri Qurbonzoda
2021-05-31 01:36:35 +03:00
committed by Space
parent 225be54c61
commit a9946b01e6
2 changed files with 4 additions and 0 deletions
@@ -148,6 +148,8 @@ public actual fun <T> Iterable<T>.shuffled(): List<T> = toMutableList().apply {
* Sorts elements in the list in-place according to their natural sort order.
*
* The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.
*
* @sample samples.collections.Collections.Sorting.sortMutableList
*/
public actual fun <T : Comparable<T>> MutableList<T>.sort(): Unit {
collectionsSort(this, naturalOrder())