Correct QName.compareTo() 53/96553/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jun 2021 15:39:28 +0000 (17:39 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 31 Aug 2021 22:45:33 +0000 (22:45 +0000)
commit75b733f25eded9e015812c4a49af1f11296be8c3
tree7670f7ce548932bfc002923e92f4a304b803a3f0
parent240a52123138150dbf63c759748f0ca7a68be74d
Correct QName.compareTo()

Sorting on localName first is counter-intuitive and tends to spread
related names (from the same module/revision) across the domain. Sort by
module/revision first, which keeps related information closely together.

JIRA: YANGTOOLS-1298
Change-Id: Ia57418f915498a0713549195b86413988b5208ce
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java