The solution is to provide a comparison function into array's sort method. Like this:

```ts
/** The numbers, ascending. */
export function sortAscending(values: readonly number[]): number[] { 
  return [...values].sort((a, b) => a - b); 
}
```