IsSorting method was added