Changeset 18676


Ignore:
Timestamp:
11/21/16 17:18:08 (8 years ago)
Author:
tbretz
Message:
Fixed a problem with the sort function which showed up in Chrome
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MobileIndico/indico.js

    r18674 r18676  
    3737        for (var slot in content)
    3838            slots.push([ content[slot].startDate.time, content[slot]]);
    39         slots.sort(function(a, b) { return a[0] > b[0]; });
     39        slots.sort(function(a, b) {  return a[0]==b[0] ? 0 : (a[0] > b[0] ? 1 : -1) });
    4040
    4141        // Loop over all slots (sessions)
Note: See TracChangeset for help on using the changeset viewer.