ction () {
          return Math.random() - 0.5;
        });
        asyncBogosort(newArr, cb);
      }
    }, 0);
  }

  function isSorted (things) {
    for (var i = 1; i < things.length; i += 1) {
      if (things[i] < things[i - 1]) {
        return false;
      }
    }
    return true;
  }


  /*
   * Bind button
   */
  function main () {
    var unsortedArray = [3,4,1,2,7];
    b1.addEventListener('click', function () {
      sortAndPrintArray(unsortedArray);
    });
  }


  /*
   * This zone starts 