Corrected sortable behaviour on inserting new objects, refs #802 (where error was introduced as a side-effect), closes #1086.