Use a bigger prefix for numeric sorting (#17752)

Release Notes:

- Fixed sorting of files with YYYYmmddHHMMSS prefix
This commit is contained in:
Conrad Irwin 2024-09-12 09:11:19 -04:00 committed by GitHub
parent 25b6e43b0f
commit 092f29d394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -644,7 +644,7 @@ impl<T: Ord + Clone> RangeExt<T> for RangeInclusive<T> {
/// This is useful for turning regular alphanumerically sorted sequences as `1-abc, 10, 11-def, .., 2, 21-abc`
/// into `1-abc, 2, 10, 11-def, .., 21-abc`
#[derive(Debug, PartialEq, Eq)]
pub struct NumericPrefixWithSuffix<'a>(Option<u32>, &'a str);
pub struct NumericPrefixWithSuffix<'a>(Option<u64>, &'a str);
impl<'a> NumericPrefixWithSuffix<'a> {
pub fn from_numeric_prefixed_str(str: &'a str) -> Self {