Move active lines to the top so they aren't overlapped