Function
getSortOrder
(sortList, field, enableSort)
Source from the content-addressed store, hash-verified
| 24 | } |
| 25 | |
| 26 | function getSortOrder(sortList, field, enableSort) { |
| 27 | if (!enableSort) return undefined; |
| 28 | const result = sortList.filter(sortObj => { |
| 29 | return sortObj.sortField === field; |
| 30 | }); |
| 31 | if (result.length > 0) { |
| 32 | return result[0].order; |
| 33 | } else { |
| 34 | return undefined; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | class TableHeader extends Component { |
| 39 | |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…