Improve sort
This commit is contained in:
parent
ef374723b2
commit
217ce94e1c
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ pub fn unify_data(status_page: &StatusPageResponse, heartbeat: &HeartbeatRespons
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
monitors.sort_by_key(|m| m.monitor_info.name.clone());
|
monitors.sort_by(|a, b| a.monitor_info.name.cmp(&b.monitor_info.name));
|
||||||
|
|
||||||
groups.push(UnifiedGroupData {
|
groups.push(UnifiedGroupData {
|
||||||
group_info: group.clone(),
|
group_info: group.clone(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue