Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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