Questions & Answers about Na festa, meu sogro pediu um pedaço de bolo e milho com manteiga.
The comma separates the opening time/place expression from the main clause.
- Na festa, = setting the scene first
- meu sogro pediu... = main information
In English, this is similar to At the party, my father-in-law ordered...
In Portuguese, that comma is very natural here. With a short opening phrase, some writers may omit it, but using it is clear and standard.