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?

[429 byte] By [RC_Germanya] at [2007-11-27 3:35:08]
# 1
> Is here anybody who can help me?Yes, but this isn't a JavaScript forum.~
yawmarka at 2007-7-12 8:38:17 > top of Java-index,Java Essentials,Java Programming...
# 2
Sorry, I am a beginner here.Where can I setup this question or maybe you can directly help me?
RC_Germanya at 2007-7-12 8:38:17 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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].

~

yawmarka at 2007-7-12 8:38:17 > top of Java-index,Java Essentials,Java Programming...