Adds sorting of resultList