diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index d73ffa0..26644a7 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -1017,7 +1017,7 @@ fn process_core( } // sort pins to avoid diff for c pins - p.pins.sort(); + p.pins.sort_by_key(|x| (x.pin.clone(), x.signal.clone())); if let Some(peri_irqs) = chip_irqs.get(&pname) { use stm32_data_serde::chip::core::peripheral::Interrupt;