Cleanup and clarify the has_overlap() logic so it can be read by
authorkrw <krw@openbsd.org>
Thu, 12 Jul 2018 16:53:09 +0000 (16:53 +0000)
committerkrw <krw@openbsd.org>
Thu, 12 Jul 2018 16:53:09 +0000 (16:53 +0000)
commit0f1cd5a253df1badb4620617126d54ef9db08a93
treeb5c039a8061f3547b8f8510e88e96501687da8c0
parentfc2a804010c173e71d0bb1361ffd67f3f048bd42
Cleanup and clarify the has_overlap() logic so it can be read by
normal people and is more efficient to boot.

The only intentional functional change was to use mergesort()
instead of heapsort() so that partitions with the same offset
retain their order in the emitted verbiage.

Looked good to tb@, ok kn@
sbin/disklabel/editor.c