diff --git a/ch05.md b/ch05.md index 646dae74..7a3123ab 100644 --- a/ch05.md +++ b/ch05.md @@ -335,7 +335,7 @@ Refactor `fastestCar` using `compose()` and other functions in pointfree-style. {% initial src="./exercises/ch05/exercise_c.js#L4;" %} ```js const fastestCar = (cars) => { - const sorted = sortBy(car => car.horsepower); + const sorted = sortBy(car => car.horsepower, cars); const fastest = last(sorted); return concat(fastest.name, ' is the fastest'); };