DockerCLI/vendor/vbom.ml/util/sortorder
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
..
README.md Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
doc.go Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
natsort.go Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00

README.md

sortorder GoDoc

import "vbom.ml/util/sortorder"

Sort orders and comparison functions.