var nextSortPriority = (function(startValue) {
      var i = startValue;
      return function() {
        i += 1;
        return i;