Hi,
I have worked on a search engine for my site, but the logic is not able to sort results alphabetically/lastest update etc. The logic used in the search engine in given the attached text files.

AP

code.txt
records.txt