💡 Add a hint for the sortBy step in exercise 3
This commit is contained in:
parent
6a45b22df5
commit
e33814cf3b
1 changed files with 4 additions and 1 deletions
|
@ -111,7 +111,10 @@ export const sortPersonsByAge: (
|
|||
// COMBINE SORTING SCHEMES //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// TBD
|
||||
// Now, we want to sort the array first by age, but for people of the same age,
|
||||
// we want to sort them by name.
|
||||
//
|
||||
// HINT: Take a look at `ReadonlyArray.sortBy`
|
||||
|
||||
export const sortPersonsByAgeThenByName: (
|
||||
person: ReadonlyArray<Person>,
|
||||
|
|
Reference in a new issue