Add tests on inventory task sorting
This commit is contained in:
parent
ca092fb694
commit
2e516261fe
6 changed files with 267 additions and 32 deletions
|
@ -1182,11 +1182,15 @@ impl ProjectPanel {
|
|||
let num_and_remainder_a = Path::new(component_a.as_os_str())
|
||||
.file_stem()
|
||||
.and_then(|s| s.to_str())
|
||||
.and_then(NumericPrefixWithSuffix::from_str)?;
|
||||
.and_then(
|
||||
NumericPrefixWithSuffix::from_numeric_prefixed_str,
|
||||
)?;
|
||||
let num_and_remainder_b = Path::new(component_b.as_os_str())
|
||||
.file_stem()
|
||||
.and_then(|s| s.to_str())
|
||||
.and_then(NumericPrefixWithSuffix::from_str)?;
|
||||
.and_then(
|
||||
NumericPrefixWithSuffix::from_numeric_prefixed_str,
|
||||
)?;
|
||||
|
||||
num_and_remainder_a.partial_cmp(&num_and_remainder_b)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue