function addPatternGroup(patternlab, pattern) {
    patternlab.patternGroups.push({
      patternGroupLC: _.kebabCase(pattern.patternGroup),
      patternGroupUC: _.startCase(pattern.patternGroup),
      patternGroup: pattern.patternGroup,
      patternGroupDash: pattern.patternGroup, //todo verify
      patternGroupItems: [],
      order:
        pattern.patternGroupData && pattern.patternGroupData.order
          ? Number(pattern.patternGroupData.order)
          : 0,
    });

    patternlab.patternGroups = _.sortBy(
      patternlab.patternGroups,
      'order',
      'patternGroup'
    );
  }
/**
   * Registers flat patterns with the patternGroups object
   * This is a new menu group like atoms
   * @param patternlab - global data store
   * @param pattern - the pattern to register
   */
Registers flat patterns with the patternGroups object
This is a new menu group like atoms
@param patternlab - global data store
@param pattern - the pattern to register
Registers flat patterns with the patternGroups object This is a new menu group like atoms @param patternlab - global data store @param pattern - the pattern to register
function addPatternGroup(patternlab, pattern) {
    patternlab.patternGroups.push({
      patternGroupLC: _.kebabCase(pattern.patternGroup),
      patternGroupUC: _.startCase(pattern.patternGroup),
      patternGroup: pattern.patternGroup,
      patternGroupDash: pattern.patternGroup, 
      patternGroupItems: [],
      order:
        pattern.patternGroupData && pattern.patternGroupData.order
          ? Number(pattern.patternGroupData.order)
          : 0,
    });
    patternlab.patternGroups = _.sortBy(
      patternlab.patternGroups,
      'order',
      'patternGroup'
    );
  }
function addPatternGroup ( patternlab , pattern ) { patternlab . patternGroups . push ( { patternGroupLC : _ . kebabCase ( pattern . patternGroup ) , patternGroupUC : _ . startCase ( pattern . patternGroup ) , patternGroup : pattern . patternGroup , patternGroupDash : pattern . patternGroup , patternGroupItems : [ ] , order : pattern . patternGroupData && pattern . patternGroupData . order ? Number ( pattern . patternGroupData . order ) : 0 , } ) ; patternlab . patternGroups = _ . sortBy ( patternlab . patternGroups , 'order' , 'patternGroup' ) ; }
Registers flat patterns with the patternGroups object
 This is a new menu group like atoms
 @param patternlab - global data store
 @param pattern - the pattern to register
Registers flat patterns with the patternGroups object This is a new menu group like atoms @param patternlab - global data store @param pattern - the pattern to register
//todo verify