How do I reorder Structure entries on the front-end? I've have a page that has a drag and drop ability to reorder a group of Structure entries (using jquery).

I see order inside EntryModel (https://craftcms.com/docs/templating/entrymodel) but it looks like Structure positioning is handled outside the EntryModel.

Once dropped and and the entries are reordered it submits to an action inside a plugin. If I reorder two entries (or any number) how do I set the new structure order?
The place to do that sort of thing is StructuresService.

If we’re just talking about reordering a flat list of entries (no hierarchy), the only methods you need to worry about are moveAfter() (if an entry is being dragged after another one) and prependToRoot() (if an entry is being dragged to the first position in the structure).

$entry = craft()-&gt;entries-&gt;getEntryById(1);
$prevEntry = craft()-&gt;entries-&gt;getEntryById(2);
$structureId = $entry-&gt;getSection()-&gt;structureId;

craft()-&gt;structures-&gt;moveAfter($structureId, $entry, $prevEntry);