The menus API returns modifier groups in the same order in which they are displayed on the Toast POS app. For more information on the logic the Toast platform uses to determine modifier group display order on the Toast POS app, see Modifier group display order overview.