core data - fixed the sort order