I fill table with records, and date is in format "yyyy.MM.dd" for easier string sorting.
B4X:
Dim table As ABMTable
table.Initialize(page, "table", True, False, True, "tbltheme")
table.SetHeaders(Array As String("Date"))
table.SetColumnSortable(Array As Boolean(True))
for each ...
Dim row As List
row.Initialize
row.Add(DateTime.Date(v.SomeDate))
table.AddRow(ID, row)
Next
page.Cell(1, 1).AddComponent(table)
table.Refresh
After I click to sort in at runtime, sorting in table is like this (order is not correct) :
table.SetColumnDataFields
Take a look at this method for more sorting info.... It is a bit more complicated than one would expect initially..
Also look at the Demo program included in ABM for more clues.