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.invite_pending() && !b.invite_pending()) return -1;
            if (!a.invite_pending() && b.invite_pending()) 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 . invite_pending ( ) && ! b . invite_pending ( ) ) return - 1 ; if ( ! a . invite_pending ( ) && b . invite_pending ( ) ) 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 pending invites