An array of character strings

Listed below are the first ten Presidents of the United States.

Click on a button to sort the array:


Note:
  1. Alphabetical: uses JavaScript sort() default method on text strings
  2. Name Length: uses user-defined comparison function
  3. Chronological: reloads original array