combine and sort the result list before printing