# sort

Description: sort cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Utilities/sort.mdx

### Signature

```solidity
function sort(uint256[] calldata array) external returns (uint256[] memory);
```

### Description

Sorts an array in ascending order.
