If you don't have any tokens to merge anything yet. Then yes, it will start at the bottom.
The reason is cause I try to not make unnecessary checks. If you can merge Token A, then it will start straight away. So it's only when the bot detects you can't merge any token, that it should do the quests. Which is why it's at the bottom. This is easier for me to make, and should be more stable theoretically.