Custom sort allows you to sort numbers in the calculation area, as well as labels. Sorting can be done on many levels (Read more about levels in Define Sort Order).
To execute a custom sort, highlight one of the cells, click on the right side of the sort button located in the Edit bar, and choose "Create new sort rule" from the context menu.
Highlight any cell
In custom sort, it doesn't matter what type of calculation you choose because all parameters are set in the edit window. Read more in Define Sort Order.
Clicking on the arrow on the right side of the button always opens a list of existing sorts and allows you to create a custom sort.
Clicking on the button will either create a simple sort (if it is available for a given calculation) or open a list of existing sorts and allow you to create a custom sort.