Ad
  • Custom User Avatar

    Read the description. It states If array is empty, null or None, or if only 1 Element exists, return 0., meaning that the array variable may be null and you will have to deal with null values.

    You are recieving an error because a null value can't be sorted since it's not iterable.