Part 2, makeOrderedLeafList using scala library functions map and sortBy