Export sorted on artist, then title?

Is it possible to sort export list first by artist, then by song title?
It kind of works with two loops:

$loop(%artist%)
$loop(%title%)

The text output us sorted as I wanted, but the shadow on odd numbered lienes doesn't work as "counter" only refers to the last loop (I guess)

Yes, 2 loops is the correct approach.
Yet, I do not see any

in the loop.
What are you referring to?