Update the class and clear the cache and linde.order on direction change
Clear line.order when changing line.direction