Bug report #263604 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263604) suggests to remove the sorting of IP addresses currently performed when interface parameters are displayed. This sorting takes a long time (more than 1 second) for interfaces with an excessively high number of addresses (~4000 in this particular bug report).
While the sorted list is useful for quick lookup of addresses in the normal interactive use case, interfaces with a large number of addresses will probably be configured and checked with tools that do not depend on any particular order of addresses in the output.
The patch in this review limits the number of IP addresses that will display in a sorted list to 32 (as #defined), longer lists will be displayed without sorting.
Other operations are unaffected, since the patched function is only called in one place for display purposes, but not for any functionality that changes the interface state.