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

During slide discovery prefer natural ordering of numbers #599

Closed
wants to merge 1 commit into from
Closed

During slide discovery prefer natural ordering of numbers #599

wants to merge 1 commit into from

Conversation

szotsaki
Copy link

It's not anymore necessary to use fixed-width numbers (001, 024, 100) to move 24 before 100 during slide loading.

The one liner sort() function is courtesy of https://stackoverflow.com/a/14599441/4620544

Fixes #598

It's necessary to regenerate the cache (node_modules/.cache) for this PR to make effect.

  • bugfix
  • feature
  • code refactor
  • test update
  • docs update
  • chore update

Motivation / Use-Case

See #598 for motivation.

It's not anymore necessary to use fixed-width numbers (001, 024, 100)
to move 24 before 100 during slide loading.

The one liner sort() function is courtesy of
https://stackoverflow.com/a/14599441/4620544

Fixes #598
@szotsaki
Copy link
Author

szotsaki commented Aug 21, 2021

It seems it needs a bit more of fine-tuning because in sub-directories the ordering is still non-natural or it fails when function parameters are null. Since I don't have time now to fix the PR, I close it for now.

@szotsaki szotsaki closed this Oct 9, 2021
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.

Natural ordering of filenames during slide discovery
1 participant