I want to change order or sequence of material table columns and data is coming from api in json form.
where I am creating headers and columns from API data itself
I want to change order or sequence of material table columns and data is coming from api in json form.
where I am creating headers and columns from API data itself

You can just adjust the position of the values. Using the array methods
splice,slice,unshift,pushwe can do the transformations.stackblitz
reference answer for shuffle logic