my_table: Table[int, string]
How do I sort by the table by the value field?
The sort proc takes an optional comparison proc which takes 2 arguments as a tuple of (K, V), so you can sort by comparing only the values:
var tab: OrderedTable[int, string]
tab.sort(proc (x, y: (int, string)): int = cmp(x[1], y[1]))