Bugfixes - arraysorting