Fix bug in Array.sortOn