Licensir.TableRex.Table.sort
You're seeing just the function
sort
, go back to Licensir.TableRex.Table module for more information.
Specs
Sorts the table rows by using the values in a specified column.
This is very much a simple sorting function and relies on Elixir's built-in comparison operators & types to cover the basic cases.
As each cell retains the original value it was created with, we use that value to sort on as this allows us to sort on many built-in types in the most obvious fashions.
Remember that rows are stored internally in reverse order that they will be output in, to allow for fast insertion.
Parameters:
`column_index`: the 0-indexed column number to sort by
`order`: supply :desc or :asc for sort direction.
Returns a new Table, with sorted rows.