Fixed sorting issue.