DockerCLI/cli/command/stack
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 Don't attempt to remove unsupported resources on older daemon 2017-07-11 10:29:03 -07:00
cmd.go Add interfacer linter 2017-05-08 15:57:50 -04:00
common.go Remove stack configs on stack removal 2017-05-26 18:17:43 -07:00
deploy.go Change --no-resolve-image flag to --resolve-image string flag 2017-06-07 12:30:11 -07:00
deploy_bundlefile.go Change --no-resolve-image flag to --resolve-image string flag 2017-06-07 12:30:11 -07:00
deploy_composefile.go Add gosimple lint 2017-06-14 16:55:08 -07:00
deploy_composefile_test.go Use `scope=swarm` for service related network inspect. 2017-06-13 20:26:12 +00:00
deploy_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -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 Update imports. 2017-04-17 18:07:56 -04:00
opts_test.go add unit tests to stack package 2017-06-20 14:31:00 -04:00
ps.go Remove duplication in task formatting. 2017-07-05 13:40:47 -04:00
ps_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
remove.go Don't attempt to remove unsupported resources on older daemon 2017-07-11 10:29:03 -07:00
remove_test.go Fix test and lint failures 2017-07-12 11:37:35 -04:00
services.go Fix stream for 'nothing found in stack' message 2017-07-05 13:32:54 -04:00
services_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00