Allow user to specify order of results to the grep method.