Quiz
- About question 1--we're technically duplicating the template, and not the clone, right?
Correct. The clone is the copy, and the template is the original.
- The reading cover scenarios of using a single criteria (name, age, class year) but what about multi properties that could be used to sort (for example, name followed by class year), how could .sort be used then?
What a great question! Let's consider
classyear
, thenname
. So, "Alice class of 2025" goes before "Alice class of 2026".Consider ties on the
classyear
. Then, and only then, do we look at the name.