I need code for a 'Next' and 'Previous' button that will only cycle through the sibling/cousin(?) pages of the current page (all of the child pages that share the same parent page). The 'Next' and 'Previous' buttons should load the next page based on the page sort order and should update the order automatically when the page sort order is updated in the backend. When the 'Next' button is clicked and the page viewed is last on the sort order, the first page should load. Likewise, when the 'Previous' button is clicked and the page viewed is first on the sort order, the last page should load.
You will develop the code on your test server and I will integrate it into my template.