extending the lambda fn for sort to include even the basic animal case; sorted creates new list so need to return it - the latter being the only fault in 1st solution