Added method to call Arrays.sort