Skip to content

Commit 2b3c977

Browse files
committed
Fix sorting of nested unordered_multiset
The outer container must be sorted, as already done for nested unordered_set.
1 parent cc1889f commit 2b3c977

File tree

1 file changed

+3
-1
lines changed
  • types/unordered_multiset/nested

1 file changed

+3
-1
lines changed

types/unordered_multiset/nested/read.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ static void PrintNestedUnorderedMultisetValue(const REntry &entry,
3232
std::vector innerSorted(inner.begin(), inner.end());
3333
std::sort(innerSorted.begin(), innerSorted.end());
3434
valueSorted.push_back(innerSorted);
35-
}
35+
}
36+
37+
std::sort(valueSorted.begin(), valueSorted.end());
3638

3739
os << " \"" << name << "\": [";
3840
bool outerFirst = true;

0 commit comments

Comments
 (0)