changes the order of record searching