Print int[string] sorted by Value

Paul phshaffer at gmail.com
Wed Oct 28 16:03:12 UTC 2020


On Wednesday, 28 October 2020 at 15:25:26 UTC, Paul Backus wrote:
>
> auto sorted = dictionary.byPair.array.sort!((a, b) => a.value < 
> b.value)

It seems this method produces a ?sorted array of tuples?
[..Tuple!(string, "key", uint, "value")("Program", 74),
    Tuple!(string, "key", uint, "value")("rd", 74)..]
I guess I would just have to iterate through the tuples.



More information about the Digitalmars-d-learn mailing list