DAC-52 Fix for Hierarchy Table Indexes can get out of sync
Patch from Bryan Hollday, tweaks by AZ



git-svn-id: https://source.sakaiproject.org/contrib/caret/hierarchy/trunk@84017 fdecad78-55fc-0310-b1b2-d7d25cf747c9