Skip to main content

DB_Table.sort_columns

sort_columnsordertext_ordering

Group: Selections

Documentation

Returns a new table with the columns sorted by name according to the specified sort method. By default, sorting will be according to case-sensitive ascending order based on the normalized Unicode ordering.

Arguments

  • order: Whether sorting should be in ascending or descending order.
  • text_ordering: The sort methodology to use.

Examples

Sort columns according to the default ordering.

      table.sort_columns

Sort columns according to the natural case-insensitive ordering.

      table.sort_columns text_ordering=(Text_Ordering.Case_Insensitive sort_digits_as_numbers=True)

Sort columns in descending order.

      table.reorder_columns Sort_Direction.Descending