Adding the orderings function to the SearchForm class