Forum Discussion
Teams sorting files with special characters at the beginning
Hello everyone,
I need to reproduce the sorting algorithm used in teams.
On the attached screenshot you can see, that all files whose name starts from "_" or "#" go before "1" and all other files, but "-" is just ignored. I need to be sure, that my sorting reproducing will work the same as teams. Is there a clear explanation of how it works? Should I consider it as a bug in MS Teams?
pavlorishkoua - We also tested this at our end, and we see that Graph is returning these file values in the order they were uploaded.
Please note that orderby query parameter is not supported for this. The supported parameters are mentioned here - https://learn.microsoft.com/en-us/graph/api/driveitem-delta?view=graph-rest-1.0&tabs=http#optional-query-parameters
7 Replies
- Meghana-MSFTFormer Employee
pavlorishkoua - This issue looks like related to the files sorting in Teams. We are mainly responsible for Microsoft Teams app development related issues.
For Microsoft Teams product issues/failures your tenant Admin can reach out to Microsoft 365 Product Support.
For general questions about Microsoft Teams please post your question on Microsoft Teams Community.- pavlorishkouaCopper Contributor
Thi is the development issue. Since it's also relates teams graph API that we are using. Screenshot is provided for better understanding of the situation.
- Meghana-MSFTFormer EmployeeCould you please share the repro steps or the doc that you are following for better understanding the issue.