Module

getTableRowsSortStateReducer

Get next "TableCellSortState" to achieve the following behaviors: 1. When the cell was not sorted --> sort it according to default ordering (ascending/descending) 2. When the cell was sorted as default ordering --> set as the opposite ordering (ascending/descending) 3. When the cell was sorted but NOT as default ordering --> clear sort state

View Source algo/getTableRowsSortStateReducer.js, line 12

a reducer function that accept a previous/current state and return next state.