[Issue 13689] byCodeUnit is not sortable

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 5 06:21:21 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13689

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc

--- Comment #1 from bearophile_hugs at eml.cc ---
This works:

void main() {
    import std.algorithm: sort;
    import std.string: representation;
    char[] arr = "ACBA".dup;
    arr.representation.sort();
    assert(arr == "AABC");
}

--


More information about the Digitalmars-d-bugs mailing list