You can use the `Array.prototype.sort()` function. However, its default behavior is to convert the elements into strings and sort those alphabetically, meaning numbers will be sorted incorrectly. To fix this, pass a comparison function like so:
```js
var arr = [5, 17, 2, 9];
arr.sort((a, b) => a - b); // positive if a > b and vice versa
console.log(arr);
// Array [2, 5, 9, 17]
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence