The order of onShow/close in the table of contents is the opposite of the order in the document body.