> Do you have any way of sorting the data before you create the > array, like maybe using ADO to bring the data from the csv to > a pre-sorted recordset? That's what I ent up doing ;) Gave up on making this database-less (the original reasons weren't compelling any more) and created a temporary table in SQL