added some sorting examples with sorted function