diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp index b3d378640e..ffda197d62 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp @@ -770,6 +770,9 @@ void SCH_SEXPR_PLUGIN::Format( SCH_SHEET* aSheet ) if( a->Type() != b->Type() ) return a->Type() < b->Type(); + if( a->Type() == SCH_SHEET_T ) + return *a < *b; + return a->m_Uuid < b->m_Uuid; };