Sort keys when searching