You have all the right pieces, but not necessarily in the right order. Try like this:
If I have three tags containing 1, 2 and 3, when I read the csv file I get:
"1","2","3"
as expected