# window_tree_cmp_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L238
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_cmp_window/

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

## Parameters

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

## Referenced by

- [`window_tree_build_session`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_build_session/) (function)

## Referenced declarations

- [`window.activity_time`](/en/tmux/3.2a/reference/c-struct-window-activity_time/) (attribute)
- [`mode_tree_sort_criteria.field`](/en/tmux/3.2a/reference/c-struct-mode_tree_sort_criteria-field/) (attribute)
- [`winlink.idx`](/en/tmux/3.2a/reference/c-struct-winlink-idx/) (attribute)
- [`window.name`](/en/tmux/3.2a/reference/c-struct-window-name/) (attribute)
- [`mode_tree_sort_criteria.reversed`](/en/tmux/3.2a/reference/c-struct-mode_tree_sort_criteria-reversed/) (attribute)
- [`timercmp`](/en/tmux/3.2a/reference/c-define-compat-h-timercmp/) (constant)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`WINDOW_TREE_BY_INDEX`](/en/tmux/3.2a/reference/c-enum-window_tree_sort_type-window_tree_by_index/) (constant)
- [`WINDOW_TREE_BY_NAME`](/en/tmux/3.2a/reference/c-enum-window_tree_sort_type-window_tree_by_name/) (constant)
- [`WINDOW_TREE_BY_TIME`](/en/tmux/3.2a/reference/c-enum-window_tree_sort_type-window_tree_by_time/) (constant)
- [`window_tree_sort`](/en/tmux/3.2a/reference/c-variable-window-tree-c-window_tree_sort/) (attribute)
