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

Update sorted function to natural sort based on child.text value #154

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rrajpuro
Copy link

@rrajpuro rrajpuro commented Mar 10, 2025

Fixes issue #153

Adding a lambda function key to return child.text so we can sort strings naturally.

Reasons for choosing natural sort over lexicographical sort:

  • ACL sequence numbers
  • Interface numbers (Ex: Sort interface Vlan2 before interface Vlan100)

@rrajpuro rrajpuro changed the title Update sorted function to sort based on child.text value Update sorted function to natural sort based on child.text value Mar 10, 2025
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

Successfully merging this pull request may close these issues.

1 participant