Even after carefully following the information provided in the official documentation and implementing the example as suggested, I'm still struggling to sort my first column in descending order. Whenever I attempt to sort by another column and then click on the first column, it only sorts in ascending order. Additionally, any updates made to the table seem to be persistent no matter how many times I try sorting the first column.
You can find the project uploaded here: https://stackblitz.com/edit/angular-ivy-6xblrn. Please bear in mind that the layout may not look visually appealing but if you run it on a local machine, the up/down arrow functionality will be visible (I had some difficulty getting StackBlitz to work properly).