Sort mapping results.