Best pattern for international address forms?

I’ve noticed an emerging pattern in web-based forms is to put the country field before city/state. This is contrary to how we would normally fill out an address on paper, but it allows us to have dynamic form labels and dropdowns.