Sort classes in `assertConfig` to avoid spurious failures on reading the properties back in

Classes could be parsed back in out of order which was causing failures but not on all machines.