Sort classes in puppet configuration