public function get_exported_posts_sorter() : sorter_entity {
        return new sorter_entity(
            // Get id function for an exported post.
            function(stdClass $post) {
                return $post->id;
            },
            // Get parent id function for an exported post.
            function(stdClass $post) {
                return $post->parentid;
            }
        );
    }
public function get_exported_posts_sorter() : sorter_entity {
        return new sorter_entity(
            // Get id function for an exported post.
            function(stdClass $post) {
                return $post->id;
            },
            // Get parent id function for an exported post.
            function(stdClass $post) {
                return $post->parentid;
            }
        );
    }
public function get_exported_posts_sorter ( ) : sorter_entity { return new sorter_entity ( // Get id function for an exported post. function ( stdClass $ post ) { return $ post -> id ; } , // Get parent id function for an exported post. function ( stdClass $ post ) { return $ post -> parentid ; } ) ; }
Create a sorter entity to sort exported posts.

@return sorter_entity
Create a sorter entity to sort exported posts .