mirror of
https://github.com/matrix-construct/construct
synced 2024-06-30 15:58:20 +02:00
ircd::json: Sort members in during opportunity in this stringify().
This commit is contained in:
parent
9c875c71a6
commit
f20ff13a44
|
@ -330,6 +330,12 @@ ircd::json::stringify(mutable_buffer &head,
|
|||
return &m;
|
||||
});
|
||||
|
||||
std::sort(m, m + iov.size(), []
|
||||
(const member *const &a, const member *const &b)
|
||||
{
|
||||
return *a < *b;
|
||||
});
|
||||
|
||||
return stringify(head, m, m + iov.size());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue