This implements a minor refactor of the search implementation to fix bug with the random param option.
The random params is no expected as an option to the the directions params. This implies that valid direction params can now be either 'desc', 'asc' or 'random'
This implements a minor refactor of the search implementation to fix bug with the random param option. The random params is no expected as an option to the the directions params. This implies that valid direction params can now be either 'desc', 'asc' or 'random'