public void OnPointerClick(PointerEventData eventData) { if (GetComponent <Toggle>().isOn) { sortDecending = !sortDecending; } // CHANGES INDICATOR if (sortDecending) { sortingDirectionIndicator.rectTransform.localEulerAngles = new Vector3(0f, 0f, 90f); } else { sortingDirectionIndicator.rectTransform.localEulerAngles = new Vector3(0f, 0f, 270f); } // ListConent.DoSortListViewBy(sortingMethod, sortDecending, ListConent.listToUse); }