sorting output by score in reverse