Skip to content

Commit

Permalink
Update function-sort.md
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
ronaldwalcott authored Feb 14, 2024
1 parent 6e4f8be commit 4bc5f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion power-platform/power-fx/reference/function-sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The parameter list for **SortByColumns** provides the names of the columns to so

You can combine **SortByColumns** with a **[Drop down](/power-apps/maker/canvas-apps/controls/control-drop-down)** or **[List box](/power-apps/maker/canvas-apps/controls/control-list-box)** control to enable users to select which column to sort by.

In addition to sorting ascending or descending, **SortByColumns** can sort based on a single column table of values. For example, you can sort record based on the name of a day of the week by supplying **[ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ]** as the sort order. All records which have **Monday"** will come first, followed by **Tuesday**, and so on. Records found that do not appear in the sort table are put at the end of the list.
In addition to sorting ascending or descending, **SortByColumns** can sort based on a single column table of values. For example, you can sort records based on the name of a day of the week by supplying **[ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ]** as the sort order. All records which have **Monday"** will come first, followed by **Tuesday**, and so on. Records found that do not appear in the sort table are put at the end of the list.

[Tables](/power-apps/maker/canvas-apps/working-with-tables) are a value in Power Apps, just like a string or number. They can be passed to and returned from functions. **Sort** and **SortByColumn** don't modify a table; instead they take a table as an argument and return a new table that has been sorted. See [working with tables](/power-apps/maker/canvas-apps/working-with-tables) for more details.

Expand Down

0 comments on commit 4bc5f97

Please sign in to comment.