| … | … | @@ -107,11 +107,12 @@ class CogChannel |
| 107 | 107 | // If both sequence numbers are zero, compare by string content |
| 108 | 108 | // (idempotent messages deduplicate). Otherwise compare by |
| 109 | 109 | // sequence number (non-idempotent messages stay unique). |
| 110 | // Place `cog-update-value!` messages early in the set. |
| 110 | 111 | bool operator<(const Msg& other) const |
| 111 | 112 | { |
| 112 | 113 | if (sequence == 0 and other.sequence == 0) |
| 113 | 114 | return str_to_send < other.str_to_send; |
| 114 | | return sequence < other.sequence; |
| 115 | return sequence > other.sequence; |
| 115 | 116 | } |
| 116 | 117 | }; |
| 117 | 118 | |