changed sortingType dropdown angular logic