# sort_pane_cmp

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

```c
static int sort_pane_cmp(const void *a0, const void *b0)
```

## Parameters

- `a0` (`const void *`)
- `b0` (`const void *`)

## Calls

- [`window_pane_index`](/en/tmux/3.7c/reference/c-function-window_pane_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/sort.c#L215)
- [`window_pane_zindex`](/en/tmux/3.7c/reference/c-function-window_pane_zindex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/sort.c#L223)

## Referenced by

- [`sort_get_panes`](/en/tmux/3.7c/reference/c-function-sort_get_panes/) (function)
- [`sort_get_panes_session`](/en/tmux/3.7c/reference/c-function-sort_get_panes_session/) (function)
- [`sort_get_panes_window`](/en/tmux/3.7c/reference/c-function-sort_get_panes_window/) (function)

## Referenced declarations

- [`window_pane.active_point`](/en/tmux/3.7c/reference/c-struct-window_pane-active_point/) (attribute)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`sort_criteria.order`](/en/tmux/3.7c/reference/c-struct-sort_criteria-order/) (attribute)
- [`sort_criteria.reversed`](/en/tmux/3.7c/reference/c-struct-sort_criteria-reversed/) (attribute)
- [`window_pane.screen`](/en/tmux/3.7c/reference/c-struct-window_pane-screen/) (attribute)
- [`SORT_ACTIVITY`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_activity/) (constant)
- [`SORT_CREATION`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_creation/) (constant)
- [`SORT_END`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_end/) (constant)
- [`SORT_INDEX`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_index/) (constant)
- [`SORT_MODIFIER`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_modifier/) (constant)
- [`SORT_NAME`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_name/) (constant)
- [`SORT_ORDER`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_order/) (constant)
- [`SORT_SIZE`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_size/) (constant)
- [`SORT_Z`](/en/tmux/3.7c/reference/c-enum-sort_order-sort_z/) (constant)
- [`window_pane.sx`](/en/tmux/3.7c/reference/c-struct-window_pane-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/3.7c/reference/c-struct-window_pane-sy/) (attribute)
- [`screen.title`](/en/tmux/3.7c/reference/c-struct-screen-title/) (attribute)
