Included Multiple level of sort and search.
 Waiting for Varunica to check bug before debugging, meanwhile she will add defensive code
Refactoring yet to be done.