On 9/19/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> "Bob Ippolito" <[EMAIL PROTECTED]> writes:
>
> > You really want to sort the items.. there's absolutely no guaranteed
> > ordering for properties. I'd probably also just use compare instead of
> > arrayEqual.
> >
> > if (compare(sorted(items(foo)), sorted(items(bar))) === 0) {
> >     /* equal */
> > }
>
> Since you mentioned sorted, is there some way to specify how to do the sorting
> according to the locale?  If this is off-topic, I'm sorry, but you guys are
> the best I know with JavaScript :-)
>

I'm pretty sure you'd have to write such a locale-specific comparison
function. I don't think any of the browsers ship with one, and it
definitely isn't standard if they do.

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to