sort cryps on add team also
This commit is contained in:
parent
1e4f2ccc80
commit
03e3f45fc8
@ -40,7 +40,8 @@ impl Team {
|
|||||||
return required;
|
return required;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_cryps(&mut self, cryps: Vec<Cryp>) -> &mut Team {
|
pub fn set_cryps(&mut self, mut cryps: Vec<Cryp>) -> &mut Team {
|
||||||
|
cryps.sort_unstable_by_key(|c| c.id);
|
||||||
self.cryps = cryps;
|
self.cryps = cryps;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user