[JScript] Sort Array

Hello,

I am using this array
http://unity3d.com/support/documentation/ScriptReference/Array.html

I want to perfom sorting based on distance. I mean I have some no empty array EmenyList of transforms

var EnemyList : Array();

function AddAllTargets(){
	
	var gos :  GameObject[] = GameObject.FindGameObjectsWithTag("targeting");
	
	
	for (var go : GameObject in gos){
		EnemyList.Add(go.transform);
		
	}

}

What would be the simplest way to sort it based on the distance between current transform and go.transform? I saw in C# people use

delegate

This is really handy. Can I do something like this in JScript?

thanks!

bump