Fix search sorting