Throughout this book you’ve already defined various sort functions, but they always sorted elements in
ascending order and always according to the evaluation of the <>() templates that you worked with throughout this chapter. Take the solution to Exercise 10-6 and generalize its sort() template accordingly. Use this to sort a sequence of integers in descending order (that is, from large to small); to sort a sequence of characters alphabetically, ignoring the case ('a' must rank before 'B', even though 'B' <>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here