Published
Edited
Oct 11, 2021
1 star
Insert cell
Insert cell
data = [4,3,7,5,9,1]
Insert cell
data.sort((a,b) => b - a)
Insert cell
data2 = [
{weight: 230, height:72},
{weight: 160, height: 65},
{weight: 270, height: 70}
]
Insert cell
data2.sort((a,b) => b.height - a.height)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more