tinymce.full.js
function getPatterns() {
        if (isPatternsDirty) {
          patterns.sort(function (a, b) {
            if (a.start.length > b.start.length) {
              return -1;
            }

            if (a.start.length < b.start.length) {
              return 1;
            }

            return 0;
          });

          isPatternsDirty = false;
        }

        return patterns;
      }
function getPatterns() {
        if (isPatternsDirty) {
          patterns.sort(function (a, b) {
            if (a.start.length > b.start.length) {
              return -1;
            }

            if (a.start.length < b.start.length) {
              return 1;
            }

            return 0;
          });

          isPatternsDirty = false;
        }

        return patterns;
      }
function getPatterns ( ) { if ( isPatternsDirty ) { patterns . sort ( function ( a , b ) { if ( a . start . length > b . start . length ) { return - 1 ; } if ( a . start . length < b . start . length ) { return 1 ; } return 0 ; } ) ; isPatternsDirty = false ; } return patterns ; }
Returns a sorted patterns list, ordered descending by start length
Returns a sorted patterns list ordered descending by start length