You can now use the EXPORT DATA statement and specify the ordering in the ORDER BY clause, as documented here.
EXPORT DATA
ORDER BY