state/nick: canonicalise the order of channels returned

map iteration does not guarantee it's returned in order