Fixed sorting of values according to highest