Fix search sort order