Sorting Ignores Hyphen

2 posts, 0 answers
  1. Charles
    Charles avatar
    3 posts
    Member since:
    Apr 2011

    Posted 22 Dec 2016 Link to this post

    I am databinding a DataTable to a RadGrid.  The records look something like this:

     

    Customer Name

    A-Line Truck Equipment
    ABC Enterprises
    Airflow Systems
    Airtest
    Alloring
    Anderson and Associates

     

    But when this column is sorted in the grid, it appears like this:

    ABC Enterprises
    Airflow Systems
    Airtest
    A-Line Truck Equipment
    Alloring
    Anderson and Associates

     

    As you can see, the hyphen is ignored in the A-Line Truck Equipment name which moves it in the list.  Is there a way to prevent this?

  2. Patrick
    Admin
    Patrick avatar
    209 posts

    Posted 22 Dec 2016 Link to this post

    Hi Charles,

    The sorting for the RadGrid implements standard sorting based on the Lexicographic system.  If you would like to implement custom sorting, please take a look at this article on Applying Custom Sort Criteria.

    Hope this helps clear things.

    Regards,
    Patrick
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top