src/index.js
function sortDocs(docs, sortType) {
    if (!sortType) return;
    const fnSorter = sorter.getSymbolsComparer(sortType, '$longname');
    const fnPropSorter = sorter.getSymbolsComparer(sortType, 'name');
    docs.sort(fnSorter);
    docs.forEach(symbol => {
        if (symbol && Array.isArray(symbol.properties)) {
            symbol.properties.sort(fnPropSorter);
        }
    });
}
function sortDocs(docs, sortType) {
    if (!sortType) return;
    const fnSorter = sorter.getSymbolsComparer(sortType, '$longname');
    const fnPropSorter = sorter.getSymbolsComparer(sortType, 'name');
    docs.sort(fnSorter);
    docs.forEach(symbol => {
        if (symbol && Array.isArray(symbol.properties)) {
            symbol.properties.sort(fnPropSorter);
        }
    });
}
function sortDocs ( docs , sortType ) { if ( ! sortType ) return ; const fnSorter = sorter . getSymbolsComparer ( sortType , '$longname' ) ; const fnPropSorter = sorter . getSymbolsComparer ( sortType , 'name' ) ; docs . sort ( fnSorter ) ; docs . forEach ( symbol => { if ( symbol && Array . isArray ( symbol . properties ) ) { symbol . properties . sort ( fnPropSorter ) ; } } ) ; }
sorts documentation symbols and properties of each symbol, if any.
sorts documentation symbols and properties of each symbol if any .