[Wasm] Add sorting function to the stdlib
This commit is contained in:
committed by
TeamCityServer
parent
049e48e780
commit
7943298240
@@ -2511,7 +2511,7 @@ public actual fun CharArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit
|
||||
* The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.
|
||||
*/
|
||||
public actual fun <T> Array<out T>.sortWith(comparator: Comparator<in T>): Unit {
|
||||
TODO("Wasm stdlib: sortWith(comparator: Comparator<in T>)")
|
||||
if (size > 1) sortArrayWith(this, 0, size, comparator)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user