sorted

fun <T : Number, D : Dimension> MultiArray<T, D>.sorted(): NDArray<T, D>