code: private function parseListSorting(ListingConfigInterface $listing)
      {
          if (null === $this->inputScreen) {
              return;
          }
          $definitions = $listing->getGroupAndSortingDefinition();
          foreach ($this->inputScreen['groupSort'] as $information) {
              $definition = $definitions->add();
              $definition->setName($information['name']);
              if ($information['isdefault'] && !$definitions->hasDefault()) {
                  $definitions->markDefault($definition);
              }
  
              $this->handleSorting($information, $definition);
  
              $groupType = $this->convertRenderGroupType($information['rendergrouptype']);
              if ($groupType !== GroupAndSortingInformationInterface::GROUP_NONE
                  && $information['col_name']
              ) {
                  $propertyInformation = $definition->add(0);
                  $propertyInformation
                      ->setProperty($information['col_name'])
                      ->setGroupingMode($groupType)
                      ->setGroupingLength($information['rendergrouplen'])
                      ->setSortingMode($information['rendersort']);
              }
          }
      }
docs: Parse the sorting part of listing configuration.
  
  @param ListingConfigInterface $listing The listing configuration.
  
  @return void