found and fixed bug with reordering
Merge pull request #64 from franzose/3.x

found and fixed bug with reordering