Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ed4e6 commit 9b32037Copy full SHA for 9b32037
1 file changed
subaru.js
@@ -91,11 +91,8 @@ async function run() {
91
}
92
93
allCars.sort(function (a, b) {
94
- const keyA = a.finalPrice;
95
- const keyB = b.finalPrice;
96
- // Compare the 2 dates
97
- if (keyA < keyB) return -1;
98
- if (keyA > keyB) return 1;
+ if (a.finalPrice < b.finalPrice) return -1;
+ if (a.finalPrice > b.finalPrice) return 1;
99
return 0;
100
});
101
0 commit comments