refactored removing and adding class on sortable

refactored sortable events (stop and start sort) to move remove class
and add class into functions .js to increase readability