|
|
@@ -16,8 +16,8 @@ struct CharTempCode {
|
|
|
|
|
|
impl Ord for CharTempCode {
|
|
|
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
|
|
- let ordering = self.code_length.cmp(&other.code_length);
|
|
|
- ordering
|
|
|
+ self.code_length.cmp(&other.code_length)
|
|
|
+ .then(other.code.cmp(&self.code))
|
|
|
}
|
|
|
}
|
|
|
|