sort Arest data, and print PDF letters functionality