API module for reordering items in a collection