Test search ordering.