fast sorting for floats but not for sortperm.