Order locations by path.