colvis + columnControl + stateRestore
colvis + columnControl + stateRestore

Hello,
Test case: https://live.datatables.net/gigegefu/2/
Steps to reproduce:
Initial state
Order: "Name", "Position", "Office", "Age", "Start date", "Salary"
→ Save as "State 1"
Swap two columns
Move "Position" and "Office" to get: "Name", "Office", "Position", "Age", "Start date", "Salary"
→ Save as "State 2"
Hide a column
Hide "Office" to get: "Name", "Position", "Age", "Start date", "Salary"
→ Save as "State 3"
Test state restoration
Load "State 1" → ✓ OK: "Name", "Position", "Office", "Age", "Start date", "Salary"
Load "State 3" → ❌ ISSUE: "Name", "Office", "Age", "Start date", "Salary"
Load "State 2" → ✓ OK: "Name", "Office", "Position", "Age", "Start date", "Salary"
Load "State 3" → ✓ OK: "Name", "Position", "Age", "Start date", "Salary"
Expected result: When first loading "State 3", the order should be "Name", "Position", "Age", "Start date", "Salary"
Actual result: The "Office" column appears in place of "Position"
Answers
I think you've hit the same problem as described in this thread. I'll reply there once I've had a chance to look into it further.
Thanks,
Allan