static void sortTable(final JTable table) {
  swingAndWait(r {
    L<Map<S, S>> data = getTableData(table);
    if (empty(data)) ret;
    S sortKey = firstKey(first(data));
    if (empty(sortKey)) ret;
    data = sortedByField(data, sortKey);
    dataToTable_uneditable(table, data);
  });
}