Follow-up for 0bc488c9. Also sort dependency properties to make them match the definition of `enum UnitDependency` in basic/unit-def.h. Fixes #22133. (cherry picked from commit adc1b76c)