package bonsai
Module Bonsai_web_ui_partial_render_table_protocol.OrderSource
Source
val apply_action :
'col_id t ->
(module Col_id with type t = 'col_id) ->
'col_id Action.t ->
'col_id tPerforms ordering change. Action.t.Set_sort sets order on one column; Action.t.Add_sort maintains multiple column ordering, when the newest added sorting is the most priority. The order on one column is changed in a cycle fashion: Ascending -> Descending -> None -> Ascending.
Source
val to_compare :
'col_id t ->
sorters:
('col_id, ('key * 'data) -> ('key * 'data) -> int, 'col_cmp) Core.Map.t ->
default_sort:(('key * 'data) -> ('key * 'data) -> int) option ->
('key, 'data, 'row_cmp) Incr_map_collate.Compare.t