adjust to refactoring in reordering handling
Merge pull request #31 from jackalope/reordering-logic

adjust to refactoring in reordering handling