1.0.8 • Published 2 years ago

group-sort-util v1.0.8

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

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago