We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Base.Order.lt
Perm{<:Any,<:StaticVector}
1 parent dcb707f commit aa340e2Copy full SHA for aa340e2
src/sort.jl
@@ -36,6 +36,8 @@ end
36
return SVector{length(a),Int}(_sort(p, alg, ordr))
37
end
38
39
+@inline @propagate_inbounds Base.Order.lt(p::Perm{<:Base.Order.Ordering,<:StaticVector}, a::Integer, b::Integer) =
40
+ lt(p.order, (p.data[a], a), (p.data[b], b))
41
42
@inline _sort(a::StaticVector, alg, order) =
43
similar_type(a)(sort!(Base.copymutable(a); alg=alg, order=order))
0 commit comments