developmentJavaScriptJavaScript Sort arrayOfObjects.sort((a, b) => { // Return positive for B before A // Return negative for A before B // Return 0 for they're the same return a.age - b.age; });Symbolic LinksNextra