Skip to content

tristanls/node-selection-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selection-sort

Stability: 1 - Experimental

Selection sort.

Usage

var selectionSort = require('selection-sort');
...
var ascending  = selectionSort(array);        // sort ascending
var descending = selectionSort(array, false); // sort descending