From the list: Holy Family ✔ Homilies (Archive): Sorting Kyle S. added this on Aug 19, 2019 Completed Aug 26, 2019 by Kyle S. Assigned to Kyle S. Notes Maybe use isotope.js? Comments & Events Kyle Sullivan, Web Development Here's the heart of the sort function. // Sort (by timestamp) $('.homilies').find('.homily').sort((a, b) => { if(sortBy === 'ASC'){ return a.dataset.timestamp - b.dataset.timestamp; } else { return b.dataset.timestamp - a.dataset.timestamp; } }).appendTo($('.homilies')); Aug 26, 2019 at 8:40 PM No one was notified Kyle Sullivan completed this to-do. Aug 26, 2019 at 8:40 PM
Kyle Sullivan, Web Development Here's the heart of the sort function. // Sort (by timestamp) $('.homilies').find('.homily').sort((a, b) => { if(sortBy === 'ASC'){ return a.dataset.timestamp - b.dataset.timestamp; } else { return b.dataset.timestamp - a.dataset.timestamp; } }).appendTo($('.homilies')); Aug 26, 2019 at 8:40 PM No one was notified
// Sort (by timestamp) $('.homilies').find('.homily').sort((a, b) => { if(sortBy === 'ASC'){ return a.dataset.timestamp - b.dataset.timestamp; } else { return b.dataset.timestamp - a.dataset.timestamp; } }).appendTo($('.homilies'));