Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Dim EventList As Map
EventList.Initialize
EventList.Put("1545915780827","ABC1")
EventList.Put("1544739267005","ABC2")
EventList.Put("1545869166546","ABC3")
EventList.Put("1545869223365","ABC4")
EventList.Put("1545869166766","ABC5")
EventList.Put("1545869166582","ABC6")
EventList.Put("1545870879803","ABC7")
EventList.Put("1544739267025","ABC8")
EventList.Put("1545870884867","ABC9")
displaySortedMap(EventList, True)
End Sub
Sub displaySortedMap(m As Map, SortAsc As Boolean)
Private KeysList As List:KeysList.Initialize
Private m2 As Map:m2.Initialize
For Each item As String In m.keys
KeysList.Add(item)
Next
Log(KeysList)
KeysList.Sort(SortAsc)
DateTime.DateFormat = "EEEE d MMMM yyyy h:mma"
For Each aKey In KeysList
Log(m.Get(aKey) & " " & DateTime.Date(aKey))
Next
End Sub