sort by the right value