This one is short and easy. You know that this is a \(D\)-major chord:
But so is this:
The order of the notes does not matter. The only difference is the inversion. When the root of the chord is on the bottom, this is called the root position – the chord isn’t inverted. The chord is in first inversion is when the third (in this case \(f\sharp\)) is on the bottom, and in second inversion when the fifth (an \(a\), here) is on the bottom.
In chord symbol notation these inversion can be specified with a slash followed by the precise note that should be on the bottom 1. Like this:
For clarity I left out some possible variations where the notes are not packed together as closely as possible. These positions are still named after which note is in the bottom spot according to the pattern I described. But their voicing is additionally said to be closed when the notes are packed and open when they are spread. This can’t be specified using chord symbols alone.
The designated bass note can in fact be any note, not just chord notes. I may discuss this in a future post.