Make order in treeview consistent.
This commit is contained in:
1 parent
e19a1341fd
commit
c8b5db719c
1 file changed
+4
@@ -46,6 +46,10 @@ impl TreeView {
|
||||
|
||||
to_ret.push(node);
|
||||
}
|
||||
|
||||
// Make the order of same id'd (named) entries consistent.
|
||||
to_ret.sort_by(|a, b| a.id.cmp(&b.id));
|
||||
|
||||
return Ok(to_ret);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user