The going go the wrong ore was some sort of Lua issue with iteration order, which resulting in a sorting like this:
https://i.imgur.com/cNm6JBk.jpg
I changed and optimized the sorting in a recent update, so it sorts like this:
https://i.imgur.com/9erQ2Pt.jpg
You will need to reset the recipe to make the depot resort all the ores