search bar and variable ordering