# SORTBY Function

> Sort a range or array by the values of other arrays with SORTBY in TX Sheet Control: sort keys, order, ties, the required sort order and #VALUE!.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > SORTBY Function
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sortby/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sortby/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sortby/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sortby/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sortby/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sortby/#see-also)

---

## Nearby

- **Previous:** [SORT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sort/llms.txt)
- **Next:** [SQRT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sqrt/llms.txt)
