Nodejs Utililty Methods Array Radix Sort

List of utility methods to do Array Radix Sort

Description

The list of methods to do Array Radix Sort are organized into topic(s).

Method

radixSort()
Array.prototype.radixSort = function () {
  var key, i, j, stack;
  var bucket = [[].concat(this)];
  var sorted = false;
  var digits = 1;
  while (!sorted) {
    var nextBucket = [];
    sorted = true;
    var nextDigits = digits * 10;
...
radixSort(maxDigit)
Array.prototype.radixSort = function(maxDigit) {
  var dev = 1;
  var mod = 10;
  var arr= [];
  for (var i = 10; i >= 0; i--) {
    arr[i] = [];
  for(var i = 0; i < maxDigit; i++,dev *= 10, mod *= 10) {
    for(var z = 0; z < this.length; z++) {
...