![]() |
sortbyvalue() bugged?
I just discovered sortbyvalue() today, but it seems to be extremely inconsistent.
Just playing around with it, I've come across cases where it doesn't sort correctly. For example, this NPC: PHP Code:
However, if you use both (i.e., removing the commented myfunc() and running script), the array is no longer sorted. Also, the following script outputs an incorrectly sorted array. It works if you remove the 'before' echo, however. PHP Code:
|
You try passing the linked array? Personally I've never had a problem but I've only had to do one sort at a time.
I.e: myFunc(temp.arr.link()); |
Quote:
|
All times are GMT +2. The time now is 04:27 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.