Hello Pavel,
Welcome to Microsoft Community and thank you for posting your query.
Few more details would help us to provide a better response.
- Does this issue occurs while working in other Excel file?
- Are you using multi-level sorting in Excel file?
If yes, I suggest you to check if any multilevel sorting is applied. To do so, select the data that is to be sorted. Click on Data> Sort> and check if any multi-level sorting is applied.
Hope this helps. Please post back with the result, we would be glad to assist you further.
Thank you.