I created a super basic app (create app using your data) that connects to an excel file in a OneDrive for Business folder. When the data is not sorted, all records appear. However, when I try using the SortByColumns function, the records return, but they're blank. See attached screenshot.
I tried the same app using a Google Sheets data source and it sorted perfectly.
Is there an extra step I need to take when using OneDrive for Business to enable sorting?
I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
It may be a known issue within PowerApps that, If you generate an app automatically from data, save the app, and then reopen it, the browse gallery might not immediately show any data. To resolve this issue, type at least one character in the search box, and then delete the text that you typed. The gallery will then show data as expected.
Please check the following article for more details about the known issues:
Please take a try to type a text within the search box, then delete the text that you typed, then check if the issue is solved.
If the issue still exists, please consider take a try to re-create your app, and then turn off/disable the "Improved app rendering (final validation)" option within Advanced settings of App settings, then save your app and re-load it, check if the issue is solved.
Community Support Team _ Kris Dai If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.