DockerCLI/cli/command/node
Boaz Shuster 1333b49194 Sort swarm stacks and nodes using natural sorting
This commit changes the order stacks and nodes are displayed.
For example, running "docker stack ls" is expected to
display the following list:

NAME          SERVICES
service-1     1
service-2     1
service-10    1

However, currently this is what is printed:

NAME          SERVICES
service-1     1
service-10    1
service-2     1

To fix this, "docker stack ls" and "docker node ls" are using
natural sorting to make it more human readable.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
2017-07-13 14:33:02 +03:00
..
testdata Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
client_test.go cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
cmd.go Add interfacer linter 2017-05-08 15:57:50 -04:00
demote.go Update imports. 2017-04-17 18:07:56 -04:00
demote_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
inspect.go Update imports. 2017-04-17 18:07:56 -04:00
inspect_test.go Update FakeCli to remove duplication in tests. 2017-07-11 14:49:30 -04:00
list.go Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
list_test.go Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
opts.go Add unused linter. 2017-06-14 16:54:27 -07:00
promote.go Update imports. 2017-04-17 18:07:56 -04:00
promote_test.go Update FakeCli to remove duplication in tests. 2017-07-11 14:49:30 -04:00
ps.go Remove duplication in task formatting. 2017-07-05 13:40:47 -04:00
ps_test.go Update FakeCli to remove duplication in tests. 2017-07-11 14:49:30 -04:00
remove.go Update imports. 2017-04-17 18:07:56 -04:00
remove_test.go Update FakeCli to remove duplication in tests. 2017-07-11 14:49:30 -04:00
update.go Update vendoring of docker/docker 2017-06-06 00:23:21 +02:00
update_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00