I want to sort an array in a way that it gives back three arrays. So
var myArray = [\'1\',\'2\',\'3\',\'1\',\'2\',\'3\',\'1\',\'2\',\'3\',\'1\',\'2\',\'3\',\'1\'
var myArray = ['1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3','1','2','3'];
var myArray1 = [];
var myArray2 = [];
var myArray3 = [];
for(var i = 0; i < myArray.length;) {
myArray1.push(myArray [i++]);
myArray2.push(myArray [i++]);
myArray3.push(myArray [i++]);
}