Very often there is a need to sort data by one or several
columns. This patch adds ability to do this by specifying
extra '-s/--sort-column' argument with respective columns:
-s SORT_COLUMN, --sort-column SORT_COLUMN
specify the column(s) to sort the data
(columns specified first have a priority,
non-existing columns are ignored), can be
repeated
e.g.:
* without sorting:
foo_command bar_subcommand list
+------+------+
| Col1 | Col2 |
+------+------+
| a | A |
| b | B |
| c | A |
+------+------+
* with sorting:
foo_command bar_subcommand list -s Col2 Col1
+------+------+
| Col1 | Col2 |
+------+------+
| a | A |
| c | A |
| b | B |
+------+------+
Change-Id: Ifc6d6746448ff6f42898efd78ed3fd084a598a91