added command line argument to pass in the order to search.