Fixed build file to hanlde duplicates. Also moved the sort calls from the java file to the build script.
Able to search for key and get multiple results