Fix for #2290

In PostProcessingQuery::merge_processing(), if the merged_resultis not empty, then the merged_result need to be sorted after the result of that chunk is copied to the merged_result