Closes #21441: Reorder elements in documentation to match actual order in the code