recalculate flat bar bases after sorting

makes everything line up in the flat bar after each drag; may resort
things in unexpected ways if there were gaps, but at least it closes
the gaps