Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Array#sort bug in Safari

#36

[{t:3}, {t:2}, {t:1}].sort(function(a, b) { return a.t > b.t; });

does not getting sorted in Safari

Reported by MadRabbit · July 3rd, 2009 @ 10:00 AM

State: resolved
Milestone: 1.1.0 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • Milestone set to 1.1.0 Release

    [milestone:id#43420 bulk edit command]

    July 3rd, 2009 @ 10:01 AM

  2. MadRabbit
    MadRabbit
    • State changed from new to resolved

    Use Array#sortBy method

    [{t:3}, {t:2}, {t:1}].sortBy('t');

    July 3rd, 2009 @ 05:01 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.