SQL statement in VI job linking to SOTAMAS90 as source file

I am using SOTAMAS90 as my source in an import and I need to sort the records before importing (AR_InvoiceHistoryHeader and I want to sort in InvoiceDate order, ascending).  How can I add that to the SQL statement?

Thanks!