1.0.8 • Published 4 years ago

group-sort-util v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago