Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q1282

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 :)



Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.