Natural sort the TreeList

2 posts, 0 answers
  1. Kelvin
    Kelvin avatar
    8 posts
    Member since:
    Aug 2013

    Posted 02 Jun Link to this post

    How can we sort the treelist by using natural sort? Or customize the sort method?

    We need the TreeList should be sorted like that:

    Folder 1

         Item 5

         Item 6

         Item 50

    Folder 2

         Item 3

         Item 4

         Item 30

    Folder 10

         Item 1





  2. Stefan
    Stefan avatar
    198 posts

    Posted 06 Jun Link to this post

    Hello Kelvin,

    The Kendo UI TreeList is using the browser sorting algorithm, which is alphabetical.

    The natural sort algorithm, can be achieved by using the widget configuration, to add a custom logic for sorting items:

    Here you can check some examples of a custom implementation of the natural sort algorithm in Kendo UI:

    Let me know if you need additional information.
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top