Chapter 7 - Strategy

See the reference chart for terminology notes:

Original Array

  1. name: jo, grade: 25
  2. name: bob, grade: 55
  3. name: pauly, grade: 250
  4. name: andy, grade: 551

Sorted by Name

  1. name: andy, grade: 551
  2. name: bob, grade: 55
  3. name: jo, grade: 25
  4. name: pauly, grade: 250

Sorted by Grade (desc)

  1. name: andy, grade: 551
  2. name: pauly, grade: 250
  3. name: bob, grade: 55
  4. name: jo, grade: 25

Sorted by Grade (asc)

  1. name: jo, grade: 25
  2. name: bob, grade: 55
  3. name: pauly, grade: 250
  4. name: andy, grade: 551
Toggle Sidebar