sort add tags and stacks routing