Data.List contains

sort :: Ord a => [a] -> [a]

and

sortBy :: (a -> a -> Ordering) -> [a] -> [a]

I believe they're currently implemented using merge sort, at least in GHC.

 /g

On 2/16/06, Radu Grigore <[EMAIL PROTECTED]> wrote:
> Is there a sort function in the libraries that come with GHC (6.4)? My search 
> at
>   http://www.haskell.org/ghc/docs/latest/html/libraries/index.html
> has failed, but I can't believe there is none.
>
> --
> regards,
>   radu
> http://rgrig.blogspot.com/
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>


--
We have lingered in the chambers of the sea     
By sea-girls wreathed with seaweed red and brown
Till human voices wake us, and we drown.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to