sort result list
don't overwrite previous result
bug fixes