http://d.puremagic.com/issues/show_bug.cgi?id=5854


kenn...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
         OS/Version|Windows                     |All


--- Comment #1 from kenn...@gmail.com 2011-04-18 12:30:54 PDT ---
It does sort the array, but not correctly, e.g.

-----------------------------------------
import std.datetime, std.stdio;
void main() {
    auto arr = [
        SysTime(DateTime(2011,4,4)),
        SysTime(DateTime(2011,1,2)),
        SysTime(DateTime(2011,2,9)),
        SysTime(DateTime(2011,3,22))];
    writeln(arr);
    arr.sort;
    writeln(arr);
}
-----------------------------------------

prints

[2011-Apr-04 00:00:00, 2011-Jan-02 00:00:00, 2011-Feb-09 00:00:00, 2011-Mar-22
00:00:00]
[2011-Jan-02 00:00:00, 2011-Apr-04 00:00:00, 2011-Mar-22 00:00:00, 2011-Feb-09
00:00:00]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to