findmax - sort

code the sort, first time, I worked it out myself