You'll need to give us a bit more information. What format are you exporting to (I use tab delimited to simplify importing into Access databases) and which column(s) do you wish sorted? Should the sort be alphabetic, numeric or alpha-numeric? Also, do you wish to sort ascending or decending?

It may also be worth telling us what you need the information for and in what format, as this could result in alternative approaches to the solution.