scripts/build-rpc-markdown.js
function methodComparator (a, b) {
    const sectionA = spec[a].section || '';
    const sectionB = spec[b].section || '';

    return sectionA.localeCompare(sectionB) || a.localeCompare(b);
  }
function methodComparator (a, b) {
    const sectionA = spec[a].section || '';
    const sectionB = spec[b].section || '';

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