Contacts first and last name order inconsistent between iCloud.com and iPhone
For the iPhone you can adjust the order of fields in Preferences -> Mail, Contacts, Calendar
For iCloud you can do the same by opening the Contacts web app and selecting Preferences (cog wheel in the lower left corner)