This bug seems to have found its way to production again. Same as before. The indexes are not being exported in the order presented in the layout. Particularly the primary key. This seems to be the worst offender as it's found mostly at the bottom of the table instead at the top. Once in a blue moon, it gets nestled inside randomly between other columns. But most importantly, the primary key id should be exported first, as in the UI ordering. It's been happening at least 4 weeks now.
Customer support service by UserEcho