Using the content repository, you can use cr_child_rels to link items to a folder, or another item and use the order_n column to store the sort order.
There are also cr_item_rels to relate cr_items to objects outside the CR and that also has an order_n column.