Thanks Steven,
That's worked a treat.
I have also amended the SQL to:
("SELECT * FROM test1.csv ORDER BY col1, col2");
I have to append a header row to my data file with column headings (I used "col1", "col2", "col3", "col4").
This allows me to sort my data file on two fields.