code: function methodComparator (a, b) {
      const sectionA = spec[a].section || '';
      const sectionB = spec[b].section || '';
  
      return sectionA.localeCompare(sectionB) || a.localeCompare(b);
    }
docs: Comparator that will sort by sections first, names second