Added code to display tag based on type
Chnaged the arrow type in sort