The order of objects in an array is not guaranteed in the JavaScript language, sorry.
If order is important to your application, then the data structure you need to use is an array, not an object. On May 3, 2014, at 09:35, Angel Java Lopez <[email protected]> wrote: > I still don't understand > > The data object is in order, the first element is the original first element. > And the second element is still the second element. Or not? According to your > second email, the title of this thread "Order in array is reversed when save > in mongodb" is NOT the case. > > The array keeps the order. > > In which way the order of PROPERTIES of EACH element has influence on the > chart output? -- Job board: http://jobs.nodejs.org/ Moderation policy: https://gist.github.com/othiym23/9886289#file-moderation-policy-md --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/A3546BED-0CDD-4DD5-8668-1FF982243B47%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
