Index: t3lib/class.t3lib_tcemain.php =================================================================== --- t3lib/class.t3lib_tcemain.php (revision 5520) +++ t3lib/class.t3lib_tcemain.php (working copy) @@ -3646,8 +3646,18 @@ // move the records if (isset($dbAnalysis)) { + $firstRecord = TRUE; foreach ($dbAnalysis->itemArray as $v) { - $this->moveRecord($v['table'],$v['id'],$destPid); + if ($firstRecord) { + $firstRecord = FALSE; + // Move record to new page + $dest = $destPid; + } else { + // Move record after previous record on new page + $dest = '-' . $previousId; + } + $previousId = $v['id']; + $this->moveRecord($v['table'], $v['id'], $dest); } } }