Henk-Jan,

       sortOnLab   = sortBy (\(l, _) (m, _) -> compare l m)

The following does the same:
        sortOnLab   = sort

It does, but I kind of liked the analogy with sortOnPrio, which could have been defined in some other ways as well, of course.

Cheers,

  Stefan

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to