We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1eb6bc commit 264a4cdCopy full SHA for 264a4cd
script.js
@@ -1,6 +1,7 @@
1
window.addEventListener("load", event => {
2
fetch("https://handlers.education.launchcode.org/static/astronauts.json").then(response => {
3
response.json().then(json => {
4
+ json.sort( (a,b) => {return b.hoursInSpace - a.hoursInSpace});
5
console.log(json);
6
const con = document.getElementById("container");
7
0 commit comments