Hey, after publishing my last blog in which I demonstrated how to concatenate a list of items into a cell by using Power Query, one of my readers told me if it is possible to sort the items when we concatenate them, and I answered yes, PQ can do it with the function List.Sort().
It’s simple, in the step 3 in the last blog, we have to add the function like this: List.Sort(Table.Column([All], « Items »)) instead of Table.Column([All], « Items ») and you will get your items sorted (by default, the sort is in ascending order, if you want it to be descending :
List.Sort(Table.Column([All], « Items »), Order.Descending)
As you notice, it’s very simple. If you have any question, don’t hesitate to contact me. See you 😉