| 24530 | module2.exports.ascending = ascending; |
| 24531 | module2.exports.descending = descending; |
| 24532 | function serialOrdered(list, iterator2, sortMethod, callback) { |
| 24533 | var state2 = initState(list, sortMethod); |
| 24534 | iterate(list, iterator2, state2, function iteratorHandler(error, result) { |
| 24535 | if (error) { |
| 24536 | callback(error, result); |
| 24537 | return; |
| 24538 | } |
| 24539 | state2.index++; |
| 24540 | if (state2.index < (state2["keyedList"] || list).length) { |
| 24541 | iterate(list, iterator2, state2, iteratorHandler); |
| 24542 | return; |
| 24543 | } |
| 24544 | callback(null, state2.results); |
| 24545 | }); |
| 24546 | return terminator.bind(state2, callback); |
| 24547 | } |
| 24548 | function ascending(a4, b7) { |
| 24549 | return a4 < b7 ? -1 : a4 > b7 ? 1 : 0; |
| 24550 | } |