OfficeDev / OfficeDev/office-scripts-docs-reference
ExcelScript.SortOrientation.columns
@alison-mk is already working on this.
Since Feb 24, 2026.
- Dominant language
- TypeScript
- Stars
- 71
- Forks
- 36
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 12
Description
Type of issue
Code doesn't work
Feedback
Hi
Sorting by rows works well, but sorting by columns does not always seem to respect the option for headings and moves them as part of the sorting.
myRange.getSort().apply( [{key: 0, ascending: true}], false, true, ExcelScript.SortOrientation.columns ); // This moves the column headings 😣 myRange.getSort().apply( [{ key: 0, ascending: true }], false, true, ExcelScript.SortOrientation.rows ); // This does not move the row headings 🙂
Page URL
Content source URL
Author
@o365devx
Document Id
cd738c17-bf7d-94ec-fd6f-6b3ea7dc6e95
Platform Id
86f698bc-a85b-7ad4-0631-6cffa1cbaa15
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.