What do you mean "syntax doesn't syntactically scale" ?
Look at List.hs (sort/sortBy) for what I mean:
http://hackage.haskell.org/packages/archive/base/latest/doc/...
I might get it if I keep trying.
(ironically I did an engineering degree which was rather maths heavy so I should get this).
Haskell can just take some time to get used to. The code is laid out differently and the use of curried functions and point-free styles can throw you off coming from imperative code.