mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-29 19:59:14 -04:00
7 lines
217 B
TypeScript
7 lines
217 B
TypeScript
![]() |
export const determineSorting = (sortBy: string, ascending: boolean, currentSymbol: string) => {
|
||
|
if (sortBy === currentSymbol) {
|
||
|
return ascending ? 'sort up' : 'sort down';
|
||
|
}
|
||
|
return 'sort none';
|
||
|
}
|