Verified with: nmstate-1.0.2-21.el8_4.noarch nispor-1.0.1-5.el8_4.x86_64 NetworkManager-1.30.0-13.el8_4.x86_64 DISTRO=RHEL-8.4.0-updates-20211026.0
Notice it only guarantees the order configured by nmstate. For example, if an interface is not managed and configured multiple IPs via `ip address` command, `nmstatectl show` may show different order(kernel provides)
No extra patch required for nmstate. For the IPv4 address missorder after reapply(change existing interface) is caused by limitation of kernel API on IPv4. Since the order between subnet does not actually matters in any use case, I would suggest you to test on IP address ordering in the same subnet especially the `secondary` flag is corrected added to IPv4 address. For IPv6 address, they should be strictly ordered.
Used one subnet for ipv4, kept ipv6 part unchanged, all passed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:0501