Module @benneq/sorting

This module contains utilities for working with Sort

Example

Single sort on click

const toggleDirection = toggle(defaultSortDirectionCycler);

const sort = new Sort();

const handleClick = (property) => {
toggleDirection(property, true)(sort);
};

Example

Multi sort on shift click

const toggleDirection = toggle(defaultSortDirectionCycler);

const sort = new Sort();

const handleShiftClick = (property) => {
toggleDirection(property)(sort);
};

Index

Classes

Type Aliases

Functions

Generated using TypeDoc