the other option, if this is a script generated pd...
# advancedpdf
s
the other option, if this is a script generated pdf is to sort in the SS code, and pass the sorted array into the template as a custom data source