Skip to content

Commit

Permalink
bug: fix _join with original sequence #8
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Dec 21, 2024
1 parent 6c43ffc commit c0b7447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/math_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub(crate) fn map_int_str_asort(obj: &IntMap<Str>, target_obj: &IntMap<Str>) {
pub(crate) fn map_int_int_join(obj: &IntMap<Int>, sep: &str) -> String {
let mut items: Vec<String> = vec![];
let mut keys = obj.to_vec().clone();
keys.reverse();
keys.sort();
for index in keys {
items.push(obj.get(&index).to_string());
}
Expand All @@ -179,7 +179,7 @@ pub(crate) fn map_int_int_join(obj: &IntMap<Int>, sep: &str) -> String {
pub(crate) fn map_int_float_join(obj: &IntMap<Float>, sep: &str) -> String {
let mut items: Vec<String> = vec![];
let mut keys = obj.to_vec().clone();
keys.reverse();
keys.sort();
for index in keys {
items.push(obj.get(&index).to_string());
}
Expand All @@ -189,7 +189,7 @@ pub(crate) fn map_int_float_join(obj: &IntMap<Float>, sep: &str) -> String {
pub(crate) fn map_int_str_join(obj: &IntMap<Str>, sep: &str) -> String {
let mut items: Vec<String> = vec![];
let mut keys = obj.to_vec().clone();
keys.reverse();
keys.sort();
for index in keys {
items.push(obj.get(&index).to_string());
}
Expand Down

0 comments on commit c0b7447

Please sign in to comment.