Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort swarm stacks and nodes using natural sorting #315

Merged
merged 1 commit into from
Jul 18, 2017
Merged

Sort swarm stacks and nodes using natural sorting #315

merged 1 commit into from
Jul 18, 2017

Commits on Jul 13, 2017

  1. 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>
    boaz0 committed Jul 13, 2017
    Configuration menu
    Copy the full SHA
    1333b49 View commit details
    Browse the repository at this point in the history