The page number in wxAuiPaneInfo was not honoured when the notebooks were not created manually. A side effect of this is having weird jumps when dragging pages because this relies on having page number consistent with the tab order. This fix both problems.