Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6936305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:13:01+00:00 2026-05-27T12:13:01+00:00

I have seen several questions, on Stack Overflow and in other places, asking how

  • 0

I have seen several questions, on Stack Overflow and in other places, asking how to implement an ordered hash, ordered object, or ordered dictionary in Javascript. Here are a few examples:

  • Ordered hash in JavaScript
  • Javascript data structure for fast lookup and ordered looping?

To me, it appears like according to the official ECMAScript spec, the order of the properties in an object is “implementation dependent”, although most browsers loop over the properties in the order in which they were defined. I can imagine some programmers testing their scripts and seeing everything work fine, unaware that, it may behave in unexpected ways in a few situations, at least in principle.

My question is this: Could they change the spec to specify the order of the properties? To me, it doesn’t seem like it would be too hard, but I don’t know if I am missing something. This would encourage the makers of the few remaining browsers to do what everyone else does and add a useful feature. They would basically be saying that JavaScript interpreters should do what most JavaScript interpreters do anyway. I can’t imagine a change like this causing any sort of compatibility issues.

If this would not be a realistic option, why not? I don’t have any immediate practical goals. I am trying to satisfy my curiosity as to why the language is the way it is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:13:01+00:00Added an answer on May 27, 2026 at 12:13 pm

    Specifying the enumeration order of object properties was discussed for ECMAScript 5 but dropped because there was found to be no de facto standard across browsers, from what I can gather.

    It’s certainly a reasonable desire, particularly since the rise of JSON.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen several questions with people asking about the same problem but none
I have seen several other posts with similar questions but nothing exactly like what
I have seen several questions regarding SocketException when using Android, but none of them
I've seen several other posts similar to this (namely https://stackoverflow.com/questions/5237/solutions-for-working-with-multiple-branches-in-asp-net ) but there are
(Note: I have seen several questions regarding .NET logging frameworks, but haven't seen any
Ok, I have seen several questions related to this issue, and I have tried
For those who have seen my other questions: I am making progress but I
I have seen several Questions comparing different ECommerce CMS's: Prestashop compared to Zen-Cart and
I have seen several similar questions to this, but none that addresses my specific
I have seen several very similar questions on stackoverflow, but haven't come across anything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.