Sort AS set, community and ext community vectors to prevent duplicates.
As a result, we will also avoid duplicate BgpAttrs.