Fixed wrong sort order