2022-01-12 14:58:42 -08:00

4 lines
89 B
JavaScript

> let a = [8, 17, 42, 99];
> a.sort(function(a, b) { return a - b; });
[ 8, 17, 42, 99 ]