TODO
New sort algorithm for bulk reorder to minimize DB updates