Changed to Arrays.sort