fix for pathlogical data for arrays.sort.