function multiresNodeSort(a, b) {
        // Base tiles are always first
        if (a.level == 1 && b.level != 1) {
            return -1;
        }
        if (b. level == 1 && a.level != 1) {
            return 1;
        }
        
        // Higher timestamp first
        return b.timestamp - a.timestamp;
    }
function multiresNodeSort(a, b) {
        
        if (a.level == 1 && b.level != 1) {
            return -1;
        }
        if (b. level == 1 && a.level != 1) {
            return 1;
        }
        
        
        return b.timestamp - a.timestamp;
    }
function multiresNodeSort ( a , b ) { // Base tiles are always first if ( a . level == 1 && b . level != 1 ) { return - 1 ; } if ( b . level == 1 && a . level != 1 ) { return 1 ; } // Higher timestamp first return b . timestamp - a . timestamp ; }
Sorting method for multires nodes.
@private
@param {MultiresNode} a - First node.
@param {MultiresNode} b - Second node.
@returns {number} Base tiles first, then higher timestamp first.
Sorting method for multires nodes .