working on sorting with lambda