1.0.8 • Published 3 years ago

group-sort-util v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Temporal group and sort wrapper

install with

npm install

test with

npm test

The module will:

  • group a collection by the group property specified
  • split each main group by the temporal attribute specified
  • sort each element inside the related group according to the sorting attributes specified

Example of usage:

let groupAndTemporalSortCollection = groupAndTemporalSort(
    {collection:testData,unit:temporalUnit.MINUTE,temporalOrder:sortOrder.descending,
    temporalPropertyName:"date",groupPropertyName:"group-1",groupOrder:sortOrder.ascending}
);  
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago