added a sort to workspaces so they are in the correct order

This commit is contained in:
2025-03-06 21:46:09 +01:00
parent 7c530b612d
commit 5f4eaa031d

View File

@@ -835,6 +835,7 @@ fn run_workspaces_client(config: &Config) {
} }
} }
let mut workspaces_tmp = workspaces.clone(); let mut workspaces_tmp = workspaces.clone();
workspaces_tmp.sort_by(|a, b| a.id.cmp(&b.id));
let mut workspace = workspaces_tmp let mut workspace = workspaces_tmp
.iter_mut() .iter_mut()
.find(|w| w.id == active_id) .find(|w| w.id == active_id)