Results 1 to 3 of 3

Thread: How to sort Groups itself based on first record in store

  1. #1
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130
    Answers
    7

    Default Answered: How to sort Groups itself based on first record in store

    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.

    Grouping and sorting.png

    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


    ---A ship in the harbor is safe, but that is not what the ships are made for...

  2. This can be achieved by defining groupers and using your sorterFn to determine how the group should be sorted.


  3. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    This can be achieved by defining groupers and using your sorterFn to determine how the group should be sorted.

    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  4. #3
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130
    Answers
    7

    Default

    Thank you so much Lee. It works like a charm
    ---A ship in the harbor is safe, but that is not what the ships are made for...

Similar Threads

  1. Replies: 3
    Last Post: 6 Feb 2014, 12:50 AM
  2. Replies: 3
    Last Post: 9 Oct 2011, 10:41 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •