fixed sort bug/typo