Sort paths.