Why not just inline `sort2` manually here? It is just one line.