From f381d9590e9d8223bd0d9c044d2c7388ee29f521 Mon Sep 17 00:00:00 2001 From: Max Knee Date: Sat, 17 Dec 2016 09:45:44 -0500 Subject: [PATCH] Adding curlies to allow func to run --- 04 - Array Cardio Day 1/index-FINISHED.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04 - Array Cardio Day 1/index-FINISHED.html b/04 - Array Cardio Day 1/index-FINISHED.html index e61b94c006..42ff6325f8 100644 --- a/04 - Array Cardio Day 1/index-FINISHED.html +++ b/04 - Array Cardio Day 1/index-FINISHED.html @@ -50,7 +50,7 @@ // } // }); - const ordered = inventors.sort((a, b) => a.year > b.year ? 1 : -1); + const ordered = inventors.sort((a, b) => {a.year > b.year ? 1 : -1}); console.table(ordered); // Array.prototype.reduce()