<p>I have a tree representation of pages in a CMS application. I understand how to persist the tree in the database. However, I don't have a good way to:</p>

<p>A) Reorder subpages under a particular parent page.<br>
B) Provide a UI implementation that allows the user to change the order.</p>

<p>Any suggestions?</p>

[{'answer_id': 47148, 'author': 'Rob Walker', 'author_id': 3631, 'author_profile': 'https://Stackoverflow.com/users/3631', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://www.javaworld.com/javaworld/jw-12-2004/jw-1220-toolbox.html" rel="nofollow noreferrer">Write custom appenders for log4j</a></p>\n'}, {'answer_id': 717055, 'author': 'McGovernTheory', 'author_id': 85095, 'author_profile': 'https://Stackoverflow.com/users/85095', 'pm_score': 1, 'selected': False, 'text': '<p>May I suggest that you leverage the existing SyslogAppender?</p>\n'}]
['https://Stackoverflow.com/questions/47163', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/577/']