Wait until transition is complete before re-sorting.
Added spacing for table elements.