Sub Class_Globals
...
Type B4XTableColumn (Title As String, Id As String, ColumnType As Int, Sortable As Boolean, Searchable As Boolean, _
Formatter As B4XFormatter, SQLID As String, Width As Int, ComputedWidth As Int, CellsLayouts As List, _
Panel As B4XView, LabelIndex As Int, DisableAutoResizeLayout As Boolean, InternalSortMode As String, CaseInsensitive As Boolean)
...
Sub BuildQuery
...
If c.InternalSortMode <> "" Then
SortColumn = " ORDER BY " & c.SQLID & IIf(c.CaseInsensitive," COLLATE NOCASE "," ") & c.InternalSortMode
End if
...