I have read several answers on this topic , but I still have questions.. There are plenty of math courses, and I don't know which one to take first. Which math classes should every computer scientist take? And what class should be first one and why?
Very good and important question! A good understanding of math is essential for every computer scientist, and the math requirement is starting to become more diverse.
That said, if an intro to machine learning class is available, they will probably cover enough linear algebra and other stuff that you can get by with a basic probability class. However, for graduate study in computer science, a good understanding of all areas of math above is essential.
Beyond undergraduate math, higher-level math courses are useful for certain theoretical areas of computer science (e.g. algorithmic game theory, which intersects with economics) and especially in going beyond being a machine learning practitioner to developing new algorithms. These courses include:
Real analysis, including measure theory where you'll find that if you study probability and calculus for long enough, they converge again. Analysis is generally a useful thing to know when you start working with algorithms involving numbers.
Optimization, including linear optimization, convex optimization, gradient descent, and so on. In many cases, "learning" a machine learning model basically boils down to optimizing an objective function, and properties of this function such as whether it is convex have a big impact on how easy it is to optimize.
Numerical methods: some wouldn't consider this a math class per se, but in translating algorithms and theory into the imperfect representation of floating-point math, there are many practical problems to be solved. For example, the log-sum-exp trick.
For those who will be in "data science" and related fields, advanced statistics and especially causal inference are very important. There are a lot of things to know, mostly because having access to a lot of data tempts this problem for the uninitiated.