doc: fixed ordering of elements with same name