Previous commit was too much, now only the sortFolderEntries is changed.
Instead of sorting on the key, it's sorted on the values and then array_keys for returning the normal array.
Still not sure this couldn't be more optimized (all these if statements and the foreach through all the folder entries) but it's working.
Previous commit was too much, now only the sortFolderEntries is changed. Instead of sorting on the key, it's sorted on the values and then array_keys for returning the normal array. Still not sure this couldn't be more optimized (all these if statements and the foreach through all the folder entries) but it's working.