I want to do a search within a resultset I get after a database search. Can anybody give me an idea/algorithm (which works efficiently) on how to go about this?