mirror of
https://github.com/matrix-construct/construct
synced 2025-03-31 23:11:33 +02:00
ircd::json: Sort members in during opportunity in this stringify().
This commit is contained in:
parent
9c875c71a6
commit
f20ff13a44
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue