The maximum number of criteria you can sort by is 64. However, it is not recommended to sort by too many criteria as this could make it harder to understand the sorting results at a glance. A good rule of thumb is to limit your sorting to the most important and relevant criteria.