Published
Edited
Oct 11, 2021
Insert cell
Insert cell
data = [5,2,7,4,9]
Insert cell
data.sort((a,b) => b - a)
Insert cell
data2 = [
{weight:275, height:72},
{weight:160,height:65},
{weight:290,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