Well, while anything goes and any which way is acceptable these days, it' s more commonplace for the bride's name to be first - it's the 'ladies first' premise.
Also, traditionally, the bride's family are the official hosts of the wedding and therefore they are inviting the guests along with the groom.
Another interesting point is when you address a married couple formally, the husband's name is always next to the surname ie Sarah and Jim Jones.
But, unless someone in your family or wedding party feels strongly about how an invitation should be worded, it's really up to you and your personal taste :-)
There are may websites that offer templates and formatted text for you to use an of course our invitation gallery offers a selection of wording styles and formats too!