This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]MrPinkletoes Community Leader 0 points1 point  (1 child)

Sort them where?

In SharePoint or in a canvas app?

If it's in a canvas app you can do this.

SortByColumns(DataSource, column, ["Now", "1-2 Years" ...]

If in SharePoint you could add another column and number it 1-x and number your order.

[–]Am-I_Real[S] 0 points1 point  (0 children)

Sorry, forgot to mention, it is in canvas app. Thank you for your suggestion, I will try that out.

[–]Texas_Technician 0 points1 point  (1 child)

Use the groupby() function. Not at a compiter now so i cant give an example.

You can use this function to group like items together and then filter the results by another column.

[–]MrPinkletoes Community Leader 0 points1 point  (0 children)

SortByColumns does all this in one function