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

Host sorting order #143

Open
antofthy opened this issue Jul 27, 2021 · 0 comments
Open

Host sorting order #143

antofthy opened this issue Jul 27, 2021 · 0 comments

Comments

@antofthy
Copy link

antofthy commented Jul 27, 2021

At the moment you have only two options for host order sorting.
use_natural_sort = 0 or 1
one with number order, the other purely alphabetical. But also relies on a extra perl module.

I have a complex 'sort' command to order hostnames based on components.
Its actually very complex sorting based on strings in hostname (tst, dev, prd) but could have easilly been based on some external database ordering too. Basically it puts the hostnames of related machines together, in test to production order!

It would be great if you can specify a sort command that takes a list of hostnames and returns the desired order (like "sort")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant