Mark wrote:Arrays are useful, because they have no particular order at all. Why do you have a problem with the way the engine reports the list of keys?
It's because I'm going to use it to store data,
e.g.
Data Blue
Data Green
Data Yellow
Data Red
Data White
Data Black
Let's say those are
Chapters in a book. Of course chapters in books shouldn't rely on being alphabetically sorted. Now I'll use
keys(data) to retrieve the keys. As like a book, I want it to remain the way I added them to the array so that I can easily reference using the
keys() function. If not, an alternative would also be great.
EDIT:
Chapters in books might not be the best example because I know chapters can be called like
Chapter 1: Data blue, etc. So I'll just re-assure my statement, whatever the example is, I really wish it would remain the same order as how each key was filled in.