Match open document order with document tab order