Forum Discussion
Teams sorting files with special characters at the beginning
- Oct 11, 2024
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
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.
- pavlorishkouaOct 07, 2024Copper Contributor
Meghana-MSFT
1. Create a team(group).
2. Add any files there and ensure their names start with special characters, like in my screenshot.3. Order files A-Z
Result: all files whose names start from any special characters except files whose name starts from "-" go to the top of the offered list.
Expected result: all files whose name starts with a special character go to the top of the ordered list.- Meghana-MSFTOct 07, 2024Former EmployeeAs you earlier mentioned that it relates to Teams graph API, could you please share the repro steps involving the APIs. The above repro steps do not seem related to development.
- pavlorishkouaOct 07, 2024Copper Contributor
https://graph.microsoft.com/v1.0/groups/{IDHERE}/drive/root/delta?$select=deleted,id,folder,name,size,parentReference,createdDateTime,lastModifiedDateTime&top=1000&$orderby=name%20desc&token=
returns not ordered items