Thanks a lot for reporting this as a papercut. I have confirmed that this bug is present in LibreOffice Writer. It seems to me that heading numbers are being ordered by a dumb algorithm, and so the '1' and the '10' are being placed side by side since they both start with '1'. I will report this bug upstream for the time being and confirm this as a papercut since the fix seems to be to add few couple of conditional loops to the system for ordering the heading numbers.
Thanks a lot for reporting this as a papercut. I have confirmed that this bug is present in LibreOffice Writer. It seems to me that heading numbers are being ordered by a dumb algorithm, and so the '1' and the '10' are being placed side by side since they both start with '1'. I will report this bug upstream for the time being and confirm this as a papercut since the fix seems to be to add few couple of conditional loops to the system for ordering the heading numbers.