Skip to content

Conversation

@de-vri-es
Copy link
Contributor

Can be useful to directly compare short filenames lexicographically.

Should be fine to derive because all characters lower than a space are illegal, and spaces indicate the end of a string. No legal character compares lower than a space, so shorter strings are always sorted before longer string.

@thejpster
Copy link
Member

Looks good to me. I appreciate the test cases.

@thejpster thejpster added this pull request to the merge queue Oct 31, 2025
Merged via the queue into rust-embedded-community:develop with commit c629f38 Oct 31, 2025
7 checks passed
@de-vri-es de-vri-es deleted the shortname-ord branch October 31, 2025 14:16
@de-vri-es
Copy link
Contributor Author

Thanks for the quick review!

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.

2 participants