code: private function handleSorting(
          $information,
          GroupAndSortingDefinitionInterface $definition
      ) {
          if ($information['ismanualsort']) {
              $definition
                  ->add()
                  ->setManualSorting()
                  ->setProperty('sorting')
                  ->setSortingMode(GroupAndSortingInformationInterface::SORT_ASC);
              return;
          }
          if ($information['col_name']) {
              $definition
                  ->add()
                  ->setProperty($information['col_name'])
                  ->setSortingMode($information['rendersort']);
          }
      }
docs: Set the correct sorting value.
  
  @param array                              $information The sorting and group information.
  @param GroupAndSortingDefinitionInterface $definition  The sorting and group definition.
  
  @return void