What are you trying to do? Are you just trying to take a page list and invert the order to display it that way? Why are you doing that in JSP? Couldn't you do this in an activity or data transform just by getting the count and then walking through and copying the pages to an array who's index equals (count - iteratorIndex)? Then you just display that new pagelist. This may not scale well if you're dealing with thousands of attachments, but at that point, I'd want to know how you generated the first page list and if you can sort that up front?