1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

sort: actually use the f64 cache

This was probably reverted accidentally.
This commit is contained in:
Michael Debertol 2021-04-29 18:03:00 +02:00
parent 9f45431bf0
commit a4813c2646

View file

@ -1254,8 +1254,8 @@ fn compare_by(a: &Line, b: &Line, global_settings: &GlobalSettings) -> Ordering
(b_str, b_selection.num_cache.as_num_info()), (b_str, b_selection.num_cache.as_num_info()),
), ),
SortMode::GeneralNumeric => general_numeric_compare( SortMode::GeneralNumeric => general_numeric_compare(
general_f64_parse(&a_str[get_leading_gen(a_str)]), a_selection.num_cache.as_f64(),
general_f64_parse(&b_str[get_leading_gen(b_str)]), b_selection.num_cache.as_f64(),
), ),
SortMode::Month => month_compare(a_str, b_str), SortMode::Month => month_compare(a_str, b_str),
SortMode::Version => version_compare(a_str, b_str), SortMode::Version => version_compare(a_str, b_str),