I try to order a Rest API query (SharePoint Online) via CSOM. Unfortunately it won't work. I want to get the files & folders of the rootfolder of a library sorted by name.
url: baseUrl + "/_api/web/lists/getbytitle('" + projectLibraryName + "')/Rootfolder?$expand=Folders,Files,Files/ModifiedBy" + "&$select=Files/ModifiedBy/Title,Files/ModifiedBy/Email,Files/Name,Files/TimeLastModified,Files/ServerRelativeUrl,Folders/Name,Folders/TimeLastModified,Folders/ServerRelativeUrl"+ "&$orderby=Folders/Name,Files/Name",
Can somebody see why?