Uh oh!
There was an error while loading. Please reload this page.
Create and order interface lists - #9
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dgjustice
commented
Jul 16, 2021
@qduk, a friend needed a solution to this very problem today, so I put something together that I believe addresses the issues we found along the way. Basically, it separates characters into classes with weights and does a 2-stage sort. Feel free to copy/paste it to your heart's content. https://gist.github.com/dgjustice/84117af73541728ece78cb33c6d37ecb |
qduk
commented
Jul 26, 2021
@dgjustice Finally had a chance to dive into this. There was a lot I didn't understand at first but what you wrote is super cool! One issue I ran into is that it sorts interface without "/" or "." not in numerical order. For example, if I use the test data of I ended up solving that by sorting the list in place using I'm sure there is a way to do it in the iteration of the tree but the above method seemed to work. I also ran into an issue where it seemed to be skipping interfaces. When I used this test data I'm not really sure why it's missing the |
dgjustice
commented
Jul 28, 2021
@qduk I'll submit my own PR with tests. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
No description provided.