title: Sorting primeng columns
body: <p>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 </p>
  
  <p>I tried to use various sorting methods in my component.ts file but had no luck. </p>
  
  <p><a href="https://www.primefaces.org/primeng/#/table/coltoggle" rel="nofollow noreferrer">Here</a> is the example I am using from PrimeNG(Can test and see code there)</p>