sorting stuff avoided, used sorted with lambda