Hoogle Search
Within LTS Haskell 22.18 (ghc-9.6.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sort :: (SemiSequence seq, Ord (Element seq)) => seq -> seqmono-traversable Data.Sequences Sort a ordered sequence.
> sort [4,3,1,2] [1,2,3,4]
sort :: ByteString -> ByteStringrio RIO.ByteString O(n) Sort a ByteString efficiently, using counting sort.
-
rio RIO.List The sort function implements a stable sorting algorithm. It is a special case of sortBy, which allows the programmer to supply their own comparison function. Elements are arranged from lowest to highest, keeping duplicates in the order they appeared in the input.
>>> sort [1,6,4,3,2,5] [1,2,3,4,5,6]
The argument must be finite. sort :: Ord a => NonEmpty a -> NonEmpty ario RIO.NonEmpty Sort a stream.
sort :: Ord a => Seq a -> Seq ario RIO.Seq sort sorts the specified Seq by the natural ordering of its elements. The sort is stable. If stability is not required, unstableSort can be slightly faster.
-
vector-algorithms Data.Vector.Algorithms.AmericanFlag Sorts an array using the default ordering. Both Lexicographic and Ord are necessary because the algorithm falls back to insertion sort for sufficiently small arrays.
sort :: (PrimMonad m, MVector v e, Ord e) => v (PrimState m) e -> m ()vector-algorithms Data.Vector.Algorithms.Heap Sorts an entire array using the default ordering.
sort :: (PrimMonad m, MVector v e, Ord e) => v (PrimState m) e -> m ()vector-algorithms Data.Vector.Algorithms.Insertion Sorts an entire array using the default comparison for the type
sort :: (PrimMonad m, MVector v e, Ord e) => v (PrimState m) e -> m ()vector-algorithms Data.Vector.Algorithms.Intro Sorts an entire array using the default ordering.
sort :: (PrimMonad m, MVector v e, Ord e) => v (PrimState m) e -> m ()vector-algorithms Data.Vector.Algorithms.Merge Sorts an array using the default comparison.