Make order in treeview consistent.
This commit is contained in:
parent
e19a1341fd
commit
c8b5db719c
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue