Improved the ListSearch class
Moved some functions from inside the classes to avoid code duplication
Fixed bugs wit sortOptions function