Sorting arrays of objects, for instance JSONValue's?
Andy Valencia
dont at spam.me
Tue Jul 22 22:01:40 UTC 2025
On Tuesday, 22 July 2025 at 21:24:04 UTC, Andy Valencia wrote:
> I'm trying to convince the library's sort() to order an array
> of JSON objects, where the "name" field is the key for the
> sort. The following is the closest I've come, but it's not
> very close!
Closer than I thought. I just had to add .str to each element,
then the comparison worked and sort() did its job.
Sorry for the noise.
Andy
More information about the Digitalmars-d-learn
mailing list