Given a source object to sort, a target to sort relative to, and an Array of siblings in the container: Determine the updated sort keys for the source object, or all siblings if a reindex is required. Return an Array of updates to perform, it is up to the caller to dispatch these updates. Each update is structured as: { target: object, update: {sortKey: sortValue} }
The source object being sorted
Options which modify the sort behavior
An Array of updates for the caller of the helper function to perform
Given an ordered Array of siblings and a target position, return the [min,max] indices to sort before the target
Given an ordered Array of siblings and a target position, return the [min,max] indices to sort after the target
A collection of functions related to sorting objects within a parent container.