insertion-sort-descending
v1.0.0
Published
Sort an array by descending values via insertion sort, pass by value
Downloads
1
Maintainers
Readme
insertion-sort-descending
Sorts an array by descending values via insertion sort, pass by value
example:
const insertionSortDesc = require('insertion-sort-descending');
insertionSortDesc([5, 2, 4, 6, 1, 3])
//returns [6, 5, 4, 3, 2, 1]