JuliaLang/julia — comment on commit 38469029f39ef6839412060f070e34bf2e9150cc
File:  line 0
By GeorgeXing:

Yeah. Sorting the first nvals indices of indexes gives the desired behavior. Do we want a sort!(A, i, j) that sorts in place from index i to j? (Or does it exist already...)