# sort_next_order

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/sort.c#L335
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-sort_next_order/

```c
void sort_next_order(struct sort_criteria *sort_crit)
```

## Parameters

- `sort_crit` (`struct sort_criteria *`)

## Called by

- [`mode_tree_key`](/en/tmux/3.7c/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1383)

## Referenced declarations

- [`sort_criteria.order`](/en/tmux/3.7c/reference/c-struct-sort_criteria-order/) (attribute)
- [`sort_criteria.order_seq`](/en/tmux/3.7c/reference/c-struct-sort_criteria-order_seq/) (attribute)
- [`sort_criteria`](/en/tmux/3.7c/reference/c-struct-sort_criteria/) (struct)
- [`SORT_END`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_end/) (constant)
