code: function(array, key) {
              // sort the array
              array = array.sort(function(a, b) {
                  var x = a[key];
                  var y = b[key];
                  return ((x < y) ? -1 : ((x > y) ? 1 : 0));
              });
              // assign a naive ranking
              for (var i = 1; i < array.length + 1; i++) {
                  array[i - 1]['rank'] = i;
              }
              return array;
          }
docs: /*
  Standart ranking
  
  The MIT License, Copyright (c) 2014 Ben Magyar