💡 Add a hint for the sortBy step in exercise 3

This commit is contained in:
Hugo Saracino 2020-12-08 16:52:32 +01:00 committed by Hugo Saracino
parent 6a45b22df5
commit e33814cf3b

View file

@ -111,7 +111,10 @@ export const sortPersonsByAge: (
// COMBINE SORTING SCHEMES // // 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: ( export const sortPersonsByAgeThenByName: (
person: ReadonlyArray<Person>, person: ReadonlyArray<Person>,