diff --git a/src/exo3/exo3.ts b/src/exo3/exo3.ts index 906da02..edc9db0 100644 --- a/src/exo3/exo3.ts +++ b/src/exo3/exo3.ts @@ -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,