' You can't sort an associative array. Values are accessed via their keys
' To convert a string to a Date object:
date = CreateObject("roDateTime") ' creates date object with current date
print(date.AsDateString("long-date")) ' prints Saturday August 6, 2022
dateString = "2022-03-08 00:00:00.000" ' string must be in ISO8601 format
date.FromISO8601String(dateString)
print(date.AsDateString("long-date")) ' prints Tuesday March 8, 2022