Fixed sorting order issue.