jckantor / nbpages

Command line tool to maintain a repository of Jupyter notebooks.
https://jckantor.github.io/nbpages/
MIT License
1 stars 4 forks source link

Incorrect sorting of tags #42

Closed jckantor closed 4 years ago

jckantor commented 4 years ago

Tags are sorted alphabetically. But the prefix is header section number which needs to be parsed to correct sort. This is a problem if any of the section number components is becomes more than on digit.

jckantor commented 4 years ago

Wasn't as hard as I feared. Introduced a natsort function for numbered section titles.