D.A.B.Tv0.0.33 Tutorial API DABT Tools ↗ GitHub ↗

tui.data.sort

tui.data.sort NAME COL [--desc] [--num]

Sorts the rows in place. The sort is stable.

Parameters

  • --desc: largest first.
  • --num: compare the cells as numbers (decimals allowed) instead of as text.

Notes

  • Text is compared with the current locale, as [[ a < b ]] does.

Returns: 1 for an unknown dataset, column or option.

Example

tui.data.sort procs cpu --num --desc