I use a vim command ('cause I edit the files with vim):
Code:
:let n=1 | g/playOrder=/s/playOrder=".\{-}"/\='playOrder="' . n . '"'/ | let n=n+1
note: they are discussing the playOrder attribute at IDPF, it might be optional in the next ePUB spec revisions.