For the grid to work properly you need to add the directive @rendermode InteractiveServer
@rendermode InteractiveServer
For the sort to work you need to adjust the database query if you're getting your data from database.