The cation comes first/on the left and the anion is second/on the right in an ionic compound.
The cation comes first in an ionic compound. In this case, the cation is the first species (on the left),
A cation has a positive charge, which is shown by the "+" superscript. E.g.
An anion has a negative charge, which is given by a "-" sign in the superscript. E.g.
The magnitude of the charges on each ion are important and are found by looking up a table of common ions. You need to memorise these common ions to know their charges. The overall charge on the ionic compound is neutral, so the charges have to add up to zero. This is why there are two
Here is a great answer with more detail: