PDA

View Full Version : How to sort Groups itself based on first record in store



SurenderBhyan1
26 Jul 2015, 11:46 PM
I have grouped the store data based on Company column and sorted data based on Date Column.
But now sorting got worse and sorting is applicable into group only.

here my requirement is that how to sort the group itself based on group first record. as shown in snapshot.

52920

As the First5 group's first record date is '06-20-2015' that is less than First1 group's Date '07-20-2015' and so on.

I want to move the group itself in sorting order based on there first record date.

I have tried multiple trick but no luck. Can anyone please help me here.

Below is fiddle for better understanding:

https://fiddle.sencha.com/#fiddle/r4s
(https://fiddle.sencha.com/#fiddle/r4s)

r4s

tristan.lee
29 Jul 2015, 12:27 PM
This can be achieved by defining groupers and using your sorterFn to determine how the group should be sorted.

rb4 (https://fiddle.sencha.com/#fiddle/rb4)

SurenderBhyan1
30 Jul 2015, 6:15 PM
Thank you so much Lee. It works like a charm =D>\:D/