Passport name encoding (MRZ) is always Last Name / First Name Middle Name for all countries universally. So when you buy your ticket, enter your first name as first name and last name as last name. No need to overthink this.
Yes, in China, when you use Pinyin/westenrn name, you have to put in LastNameFirstName or LastName/FirstName when buying directly from an airline. However, for all others, just put in First Name where it asks for First name, and Last Name where it asks for that. It will always get formatted as LastName/FirstName MiddleName Title in the airline system.
https://en.wikipedia.org/wiki/Machine-readable_passport