fixed sorting, values now match