mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 04:30:56 +01:00
added -k parameter to sort by columns
This commit is contained in:
@@ -26,11 +26,19 @@ import (
|
||||
)
|
||||
|
||||
func printData(data *Tabdata) {
|
||||
// some output preparations:
|
||||
|
||||
if OutputMode != "shell" {
|
||||
// not needed in eval string
|
||||
numberizeHeaders(data)
|
||||
}
|
||||
|
||||
// remove unwanted columns, if any
|
||||
reduceColumns(data)
|
||||
|
||||
// sort the data
|
||||
sortTable(data, SortByColumn)
|
||||
|
||||
switch OutputMode {
|
||||
case "extended":
|
||||
printExtendedData(data)
|
||||
|
||||
Reference in New Issue
Block a user