Aliases are ordered so that the closest match takes precedence. Aliases with a full 7 digit capcode will be used first, followed by those with one wildcard, and so on. Those that start with a wildcard will always be ordered last, and thus are only matched with a message if no other alias matches.