loop through list in reversed order to preserve list-order in document