Jump to content

[SOLVED] map sort issue


photo

Recommended Posts

Posted

hi:

   I found the map allways been sort. which is i don't want to be.

example:

  int maptest[]=("c":"ccc","b":"bbb","d":"ddd");
  log.message(maptest.get(0)+"   "+maptest.key(0));

in this case, of course i want to print the first key "c" and "ccc"

the result is "bbb" and "b"

is there anyway to not sort the map?

thanks

Posted

Don't think so, sorting is the key for fast lookups.

×
×
  • Create New...