title: How to sort a list in Haskell in command line ghci
body: <p>I am new to Haskell, and I want to make 1 function that will take two lists and merge then together, and then sort the combined list from smallest to biggest.
  this should be done in the command line without using modules.</p>
  
  <p>This is what i currently have, I am having trouble getting the "sortList" function to work, and also I do not know how to combine these 3 lines into 1 function.</p>
  
  <pre><code>let combineList xs ys = xs++ys
  let zs = combineList xs ys
  let sortList (z:zs) = if (head zs) &lt; z then (zs:z) else (z:(sortList zs))
  </code></pre>