mirror of https://github.com/apache/lucene.git
LUCENE-2562: Preserve map key order for the user interface.
This commit is contained in:
parent
1204327b56
commit
62ed046e52
|
@ -200,7 +200,7 @@ public final class CommitsImpl extends LukeModel implements Commits {
|
|||
if (dir == null) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
return Map.copyOf(commitMap);
|
||||
return new TreeMap<>(commitMap);
|
||||
}
|
||||
|
||||
private SegmentInfos findSegmentInfos(long commitGen) throws LukeException, IOException {
|
||||
|
|
Loading…
Reference in New Issue