Sort in Javascript
Hi,
I have an Arraylist where I use Javascript to insert a line. I would like to insert it sorted by alphabetical order. But the sort had not been accepted. The system says that this is not a valid method.
Here is a coding part:
var newentry = new Option(source.text,source.value,false,true);
target[target.length]=newentry;
target.sort();
Is here anybody who can help me?
> Sorry, I am a beginner here.
No problem. Posting JavaScript questions here is a common error; it's easy for people unfamiliar with the technology to confuse Java and JavaScript.
> Where can I setup this question or maybe you can
> directly help me?
I presume you found this forum by searching for it on the web. Try the same technique to find a [url=http://www.google.com/search?q=javascript+forum]JavaScript Forum[/url].
~