code: private function sortByAlgorithm(array $indexes)
      {
          if (self::SORT_ALPHA === $this->configuration['sort_algorithm']) {
              uasort($indexes, [$this, 'sortAlphabetically']);
          } elseif (self::SORT_LENGTH === $this->configuration['sort_algorithm']) {
              uasort($indexes, [$this, 'sortByLength']);
          }
  
          return $indexes;
      }
docs: @param array[] $indexes
  
  @return array