Array.sort() Error

Array.sort() Error

ozawa_shinya
Advocate Advocate
73 Views
1 Reply
Message 1 of 2

Array.sort() Error

ozawa_shinya
Advocate
Advocate

[ FlexSim 24.0.9 ]

Hi,

I would like to sort the data in a Map class by key, so I converted the Map to an Array and use the sort() method of Array, but it hangs in 2024 but ran without any problems in 2025. What is the difference in this behavior?

For each model, when you run the script after fast forwarding, it will hang in 24.0.9 version, but there will be no problem in 25.0.6 version.

https://answers.flexsim.com/articles/164649/heatmap-anything.html

heatmapAnythingTest24.0.9.fsm

heatmapAnythingTest25.0.6.fsm

Thanks in advance.

0 Likes
74 Views
1 Reply
Reply (1)
Message 2 of 2

kavika_faleumu
Autodesk
Autodesk

Hey @ozawa_shinya, yes there was a fix with Array.sort() sometime between 24.0 and 25.0. I'm glad that it runs without issue in 25.0+.

0 Likes