Document reordering with hidden columns