For in traversal execution order is different js

perform traversal for the first time. If you traverse normally, you should first traverse the first d_stamp field. It is found that the result of the first traversal is not the first field, resulting in a different order of table titles.

Mar.20,2021

objects do not guarantee order.
you can use arrays


the traversal of objects is inherently unordered. If you want to output in a certain order, you can declare an array and put the fields you need in the array in the order you need.


Don't take normal traversing for granted
look at the documentation
https://developer.mozilla.org.

. The
for.in loop iterates over the properties of an object in arbitrary order

if you want to fix the header, write directly or add a sort

Menu