Sorry for the confusion, I wrote inaccurately above. The unexpected behavior is
julia> issorted([1,1], lt=<=)
false
and more generally that issorted(sort(seq, lt=f), lt=f) isn’t necessarily true for collections with duplicates.
Maybe a solution is to provide an le= parameter.