By default an ExtJS grid with multiColumnSort: true does this:
As subsequent columns are clicked upon, they become the new primary sort key.