Reorder element output to match page sequence.