Sort tag items.