sorting value fix for contest