[sort] fixed bug.