Inflation means that prices go up and money becomes worthless. As commodities, non-ferrous metals and coal, as upstream products in production, will definitely rise ahead of schedule. At the same time, commodities also have futures, which have the function of price discovery and can detect inflation in advance, thus taking the lead in rising.
I hope this answer will satisfy you.