It sounds like you’re a committed Leibnizian rational theodicist!
Leibniz was impressed by the idea that the modern scientific method, which was really only being properly invented in his day, could uncovered the rationality of God’s creation. That rationality built into nature, which we slowly realise through science, is all we need to be reassured that the world was created according to some kind of well ordered plan.
He liked the idea of a fellow rationalist philosopher Nicolas Malebranche (1638-1715) who said that investigation into the laws of nature is a kind of “natural prayer”. It brings us closer to God, strengthens our belief in God’s wisdom, and makes us love God all the more.
However, it has seemed to many other philosophers that order isn't everything, and the world could be overall better by containing less pointless suffering.