I'am a javascript newbie, here is code from ExtJS which confuses me:
supportsSort = (function() {
var a = [1,2,3,4,5].sort(function(){ return 0; });
return a[0] === 1 && a[1] === 2 && a[2] === 3 && a[3] === 4 && a[4] === 5;
}()),
Is someone can tell me why ExtJS want to do this test?
It is better to attach some examples code.