build/metalsmith/plugins/collection.manual-sort.js
Function sorter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sorter(order) {
order = order || [];
return function(one, two) {
let a = one.sidebar || one.title;
Avoid too many return
statements within this function. Open
Open
return 1;
Avoid too many return
statements within this function. Open
Open
return 1;
Avoid too many return
statements within this function. Open
Open
return 1;
Avoid too many return
statements within this function. Open
Open
return 0;
Avoid too many return
statements within this function. Open
Open
return -1;
Avoid too many return
statements within this function. Open
Open
return 0;
Avoid too many return
statements within this function. Open
Open
return -1;
Avoid too many return
statements within this function. Open
Open
return 1;
Avoid too many return
statements within this function. Open
Open
return -1;