I am using a primeng table and was using their toggle method for the columns. The only issue is, with the columns when you toggle one off and back on it returns the column to the end of the table. I was wondering if anyone knew anyway to sort them so the column goes back to the original position
I tried to use various sorting methods in my component.ts file but had no luck.
Here is the example I am using from PrimeNG(Can test and see code there)