order pages and questions: tab text and cleanup

* after sorting of pages, update pagenumber in database and on tabs
(browser)
* cleanup: move sorting of nodes from controller to model