# sort_order_from_string

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

```c
enum sort_order sort_order_from_string(const char *order)
```

## Parameters

- `order` (`const char *`)

## Called by

- [`cmd_choose_tree_exec`](/en/tmux/latest/reference/c-function-cmd-choose-tree-c-cmd_choose_tree_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-choose-tree.c#L103)
- [`cmd_list_buffers_exec`](/en/tmux/latest/reference/c-function-cmd-list-buffers-c-cmd_list_buffers_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-buffers.c#L62)
- [`cmd_list_clients_exec`](/en/tmux/latest/reference/c-function-cmd-list-clients-c-cmd_list_clients_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-clients.c#L76)
- [`cmd_list_keys_exec`](/en/tmux/latest/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-keys.c#L191)
- [`cmd_list_panes_exec`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-panes.c#L60)
- [`cmd_list_panes_window`](/en/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-panes.c#L142)
- [`cmd_list_sessions_exec`](/en/tmux/latest/reference/c-function-cmd-list-sessions-c-cmd_list_sessions_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-sessions.c#L68)
- [`cmd_list_windows_exec`](/en/tmux/latest/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-windows.c#L75)
- [`cmd_switch_client_exec`](/en/tmux/latest/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-switch-client.c#L109)
- [`mode_tree_start`](/en/tmux/latest/reference/c-function-mode_tree_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L514)

## Referenced declarations

- [`SORT_ACTIVITY`](/en/tmux/latest/reference/c-enum-sort_order-sort_activity/) (constant)
- [`SORT_CREATION`](/en/tmux/latest/reference/c-enum-sort_order-sort_creation/) (constant)
- [`SORT_END`](/en/tmux/latest/reference/c-enum-sort_order-sort_end/) (constant)
- [`SORT_INDEX`](/en/tmux/latest/reference/c-enum-sort_order-sort_index/) (constant)
- [`SORT_MODIFIER`](/en/tmux/latest/reference/c-enum-sort_order-sort_modifier/) (constant)
- [`SORT_NAME`](/en/tmux/latest/reference/c-enum-sort_order-sort_name/) (constant)
- [`sort_order`](/en/tmux/latest/reference/c-enum-sort_order/) (enum)
- [`SORT_ORDER`](/en/tmux/latest/reference/c-enum-sort_order-sort_order/) (constant)
- [`SORT_SIZE`](/en/tmux/latest/reference/c-enum-sort_order-sort_size/) (constant)
- [`SORT_Z`](/en/tmux/latest/reference/c-enum-sort_order-sort_z/) (constant)
