playMaker

Author Topic: Hash Table sorting order on play Question  (Read 1223 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Hash Table sorting order on play Question
« on: December 23, 2015, 11:50:43 AM »
Why does the hashtable re-sorts itself on play? See attached picture.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14595
  • Official Playmaker Support
    • View Profile
Re: Hash Table sorting order on play Question
« Reply #1 on: January 24, 2017, 01:06:01 AM »
Hi,

 Unfortunatly, because hashtable order doesn't matter and so internally it's not enforced and can change.

the only way to show an ordered list comign from a hashtable is to extract the keys, sort them, and then display each item of that hashtable following the order of the sorted key.

does that make sense?

Bye,

 Jean