Maintain nth-child list item style with Sortable

Maintain nth-child list item style with Sortable

Hi gang,

I have a sortable list. I'm showing alternate colours using jquery's nth-child so that it will work in ie browsers too.

The problem is, how do I maintain the alternating background colours after dragging list items?

I've tried a stack of things along the lines of removeClass > addClass, but nothing seems to work.

Here's a demo:
http://dev.dezertdezine.com/match-game-sortable.html

Can anyone put me on the right track?

Cheers....