Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Table.Sort --- not sorting correctly

OK its the end of the week but and a simple sort is defeating me....

 

So I want to sort a table by two columns and then I will remove duplicate so keeping the top most one of each - works normally but today tried it again on a new data set and while I ask it to sort.Ascending it sorts it decending!

 

#"Wrangle DATReport2: Sort" = Table.Sort(#"Wrangle DATReport2: Create Sort IDX", {{"CountySRNum", Order.Ascending}, {"Sort_IDX", Order.Ascending}})

 

 

I always thourght 2 came before 3  !!

 

Anyone any ideas....

 

Thanks

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    So the work around was to create a temp column with the columns wanted to sort.

     

    But still none the wiser why the Sort method is not giving the expacted results.

     

    Andrew