sort() not function?

Alphabetize

Evil3d11
9 months ago

0

so Ive done this so far>> x = Document.getElementByTagName(textarea)[0].innerHTML; x.split(); x.sort()

but it has returned sort as not a function

4replies
3voices
5views
Mugi [Mugiwara27]
9 months ago

0

Where are the at ?? you need them for textarea. Then, why using a variable when you don’t need it ? Just append split and sort to the rest of your code :)

Have a nice day!

Evil3d11
9 months ago

0

it’s a paraphrase of the code I’m not gonna type it exactly in the forums. just something I don’t focus on.I also solved the not sorting problem. I just a mis-sorting problem now. thinking of writing a compare function but that would take a while and I’m looking for quicker ways

fred [feuerstein]
9 months ago

0

sounds like overthinking maybe… you can send me your code and what you have done via PM if you like to

Evil3d11
9 months ago

0

sure just give me half an hour to get to enough terminal

Discussion thread has been locked. You can no longer add new posts.
1 of 5

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss