No, pagination does not work like you are thinking of. The work around, I suggest, is to use a Book resource or perhaps a Lesson. One of these should suit your need I would think.
Thanks Colln for reply..
I have used
$baseurl = new moodle_url('/course/format/classroom/manage_location.php', array('sort' => 'location', 'dir' => 'ASC','perpage' => $perpage));
echo $OUTPUT->paging_bar(count($results), $page, $perpage, $baseurl);