fix sorting arrows, display type in library after column change