[Haskell-beginners] List Sorting and I/O