Flexgrid default sort behavior

Posted by: nguyen on 9 May 2022, 3:57 pm EST

  • Posted 9 May 2022, 3:57 pm EST

    Dear,

    I recently facing with FlexGrid sort on column that contains japanese.

    I like to know what is the default sort behavior of CollectionView used in FlexGrid.

    Is that Wijmo execute sorting base on String Compare?

    It is very helful if you could shared me the sorting strategy ( source code is also ok).

    Thanks in advance!

  • Posted 10 May 2022, 11:44 pm EST

    Hello,

    The issue related to Japanese characters has already been addressed on a different forum thread, you can refer to the post from this link: https://www.grapecity.com/forums/wijmo/flexgrid-column-sort-on-ja.

    If you still face any issues related to this you can let us know the exact issue you have faced.

    The sorting in FlexGrid is done based on the data on that sorting column. If you wish to change the default sorting behavior in FlexGrid then you may use the sortComparer property of the CollectionView and provide your sorting logic to it. You can refer to the below API link for more information :

    https://www.grapecity.com/wijmo/api/classes/wijmo.collectionview.html#sortcomparer

    Regards

  • Posted 11 May 2022, 11:16 am EST

    Thanks for your response,

    I found that CollectionView use Intl.Collator comparer to perform sort which i exactly want to know.

    It is described on this demo.

    https://demo.grapecity.com/wijmo/demos/Core/CollectionView/CreatingViews/Sorting/InternationalSort/react

    Thanks you!

  • Posted 11 May 2022, 2:51 pm EST

    Hello,

    We are glad that you were able to find it on your own. Thank you for sharing.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels