Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q1282, November 14, 2000 at 13:54:24:

You are here: irt.org | About | Feedback | 2001 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q1282

Sent by
Nestor Gonzalez on November 14, 2000 at 13:54:24:

Worth:
Very worth reading

Comments:
Hi, this is a really good tip...
I have used it my self, and I have some fix that I want to share with you...

Actually the function compareText is like this

function compareText(a,b) { a.text - b.text;} This return an error because the operation expects numbers instead of text

to solve that I propose replace the function with this

function compareText(a,b) { x = 0; if (a.text < b.text) x=-1; else x=1; return x;}

That works for me...
so, I hope this will be usefull for you.

And Thanks for provide good solutions.. and most of the answers of my FAQS :)


©2018 Martin Webb