I was also looking to see how I can get the correct order of the slides and saw this post. I tested your code but it doesn't seem to put the slides in order.
When you view a presentation in "normal" view you will see the slided in the left pane numbered 1 through x. How can you get the titles ordered just like that?
Thanks