Hi,

with the new beta I get the warning I should use std.algorithm.sort instead the .sort property. I thought the std.algorithm.sort method is used in this example?

void main()
{       
        import std.algorithm: sort, uniq, map;
        import std.array: array;
        
        string[] arr = ["A","B","B","C"];

        string[] result = arr
                .map!(n => n) // minified
                .array
                .sort
                .uniq
                .array;
}

I want to use the sort template with the default less "a < b" without specifying !("a < b")

Kind regards
André

Reply via email to