`ecdf` uses a `sortperm` to sort the vector of samples given in `X` ```julia ord = sortperm(X) ECDF(X[ord], isempty(weights) ? weights : Weights(weights[ord])) ``` But `sortperm(X)` is much slower than `sort(X)`. Why not use a simple `sort`?
ecdfuses asortpermto sort the vector of samples given inXBut
sortperm(X)is much slower thansort(X).Why not use a simple
sort?