```typescript
/** The numbers, ascending. */
export function sortAscending(values: readonly number[]): number[] {
  return [...values].sort((a, b) => {
    if (isNaN(a) || isNaN(b)) throw new Error("NaN is not ordered");
    if (a < b) return -1;
    if (a > b) return 1;
    return 0;
  });
}
```