static/js/projects.js
// Sort by the last modified date
Sort by the last modified date
Sort by the last modified date
function modified_sort(a, b) {
            const a_text = a.updated();
            const b_text = b.updated();
            if (a.running() && !b.running()) return -1;
            if (!a.running() && b.running()) return 1;
            if ( a_text > b_text ) return -1;
            if ( a_text < b_text ) return 1;
            return 0;
        }
function modified_sort ( a , b ) { const a_text = a . updated ( ) ; const b_text = b . updated ( ) ; if ( a . running ( ) && ! b . running ( ) ) return - 1 ; if ( ! a . running ( ) && b . running ( ) ) return 1 ; if ( a_text > b_text ) return - 1 ; if ( a_text < b_text ) return 1 ; return 0 ; }
Sort by the last modified date
Sort by the last modified date
// Prioritize running projects