Could any one tell me why the result of below code is: 3,14,14,36,45,52

function myCompare(x, y)
{
if (x << y)
return -1;
else if (x === y)
return 0;
else
return 1;
}
var myArray = [14,52,3,14,45,36];
myArray.sort(myCompare);
alert(myArray);