There must be something very simple wrong with this code, but it doesn't sort. Why is that?
$(document).ready(function () {
var topArray = [];
topArray.push(1000);
topArray.push(298);
topArray.push(2000);
topArray.sort();
alert(topArray[0] + "," + topArray[1] + ", " + topArray[2]);
})