Add the sorting of result list