Forum Discussion

barabuli's avatar
barabuli
Regular Visitor
9 years ago
Solved

Sort by column name

why do I receive this kind of sorting when it is sorted by Name??

 

why does  "Up" comes first an then "More"???

 

I mean first comes words but no alphabet sorting and then comes numbers but not by ascending??

  • Anonymous's avatar
    Anonymous
    9 years ago

    When you sort by ascending on a text column it shows numbers first. And it only sorts by the first element of some text.

     

    An example:

    data = beer, 3, 10, 2, axe, cloth.

    Sort data by ascending: 10, 2, 3, axe, beer, cloth

    Sort data by descening: cloth, beer, axe, 3, 2, 1

     

    These are the possibilities you have when sorting text. but there is a work around for this.

     

    You can make a new column next to your categories, which can be called SortOrder and simply assign 1, 2, 3, 4, 5 and so on, and then sort by the column, either ascending or descending according to your need. 

     

    Let me know if this will solve your challenge. I'll gladly elaborate.

     

    Best

    Martin

  • Anonymous's avatar
    Anonymous
    9 years ago

    barabuli Could I ask you to accept a solution for this so other can benefit from it as well?

10 Replies

  • Salvador's avatar
    Salvador
    Responsive Resident

    Hi,

     

    Idk if you have it set to sort ascending or descending, but if that's a calculated field, you could sort by another column, and... if it's not calculated, you could also create an if column, making an artificial sort, converting thoose names to numbers, and then sort that column by this new one :D

     

     

    • barabuli's avatar
      barabuli
      Regular Visitor

      Cant sort whole table by one column cause I need several different reports and everyone should be sorted differently.

      I need sorting tool with certain report not the whole dataset

       

      • v-sihou-msft's avatar
        v-sihou-msft
        Microsoft Employee

        barabuli

         

        There's no sorting tool on report level. You can sort categories on chart level.

         

         

        Otherwise, the sorting is always on dataset level.

         

        Regards,