pat310 / quick-pivot

Quickly format data to create a pivot table
https://www.npmjs.com/package/quick-pivot
MIT License
63 stars 21 forks source link

Preserving order or column and row entries? #70

Closed corvana-nbaker closed 6 years ago

corvana-nbaker commented 6 years ago

Is there a way of setting the sorting algorithm in play? My initial data is sorted properly, but upon pivot seems to be randomized (though consistent).

pat310 commented 6 years ago

Right now the data gets sorted before pivoting just using the native javascript array sort method. I could set it up so this doesn't happen automatically or so that it could optionally take some sort callback...

corvana-nbaker commented 6 years ago

A delegate function would be great! I'll link the source over and test it with a no-op.

pat310 commented 6 years ago

Closed in #71