Print2DListLex.hs 319 Bytes
Newer Older
pm3g19's avatar
pm3g19 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
import Data.List
import Data.Char
import Data.Sequence

-- | Function print2DListLex
-- 1. takes in a list of records
-- 2. prints them in lexicographical order
print2DListLex :: [[String]] -> IO()
print2DListLex (record:records) = sortBy () records

-- | rearran
rearrange :: [[String]] -> [[String]]
rearrange records