Fix reording for simplex documents (Thanks to Daniele Di Domizio)

This fixes reordering of simplex documents and slightly improves the logic
to figure out whether a sheet needs to be considered for reordering.