[Haskell-beginners] sorting

Felipe Almeida Lessa felipe.lessa at gmail.com
Sat Oct 8 13:56:12 CEST 2011


On Sat, Oct 8, 2011 at 12:51 AM, kolli kolli <nammukolli04 at gmail.com> wrote:
> i want the o/p to be ["ala", "jera","zero", "0020", "0030","0022"]

import Data.Char
import Data.List

sortKolli xs =
  let (ns,ys) = partition (all isNumber) xs
  in sort ys ++ ns

-- 
Felipe.



More information about the Beginners mailing list