You would have to compare albumartist, not artist. Also, I assume it also checks the *next* track as well as the previous one... even then that might behave oddly though if you have, say, two albums in a playlist together, shuffled, there will be lots of runs of tracks from the same album but not in the right order.