code: 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;
        }
docs: Returns a sorted patterns list, ordered descending by start length