1. I have XML Elements in Array, each Element have attribute called pg='34' like this, I want to sort this array using 'pg' attribute.
2. I am Reading all stories from indesign file, it is not coming with perfect alignment order (ie) First story coming from last page and second story coming from first page. I want to align the stories with layout order.