Skip to content

Commit

Permalink
UI(message): rearranged Details and ExtraFieldInfo keys slpabetically…
Browse files Browse the repository at this point in the history
… in json-timeline #1145
  • Loading branch information
hitenkoku committed Sep 4, 2023
1 parent 274a733 commit b44109c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/detections/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ pub fn insert(
let value = x.split_once(": ").unwrap_or_default().1;
!details_splits.contains(value)
})
.map(|y| y.to_owned());
.map(|y| y.to_owned())
.sorted_unstable();
if is_json_timeline {
record_details_info_map
.insert("#ExtraFieldInfo".into(), extra_field_val.collect());
Expand Down Expand Up @@ -389,6 +390,7 @@ pub fn parse_message(
}
}
}
details_key_and_value.sort_unstable();
(return_message, details_key_and_value)
}

Expand Down

0 comments on commit b44109c

Please sign in to comment.