etherpad-lite/admin/src/utils/sorting.ts

7 lines
217 B
TypeScript
Raw Normal View History

export const determineSorting = (sortBy: string, ascending: boolean, currentSymbol: string) => {
if (sortBy === currentSymbol) {
return ascending ? 'sort up' : 'sort down';
}
return 'sort none';
}