o
    tBh                     @   sF   d dl Z d dlmZ d dlmZ dgZe dZdedefddZ	dS )	    N)Tuple)cyclenatural_comparison_keyz(\d+)keyreturnc                 C   s"   t dd tt| tdD S )zComparison key function for sorting strings by natural sort order.

    See: https://en.wikipedia.org/wiki/Natural_sort_order
    c                 s   s(    | ]\}}|rt ||fn|V  qd S )N)int).0partis_digit r   v/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/graphql/pyutils/natural_compare.py	<genexpr>   s
    
z)natural_comparison_key.<locals>.<genexpr>)FT)tuplezip
_re_digitssplitr   )r   r   r   r   r      s   )
retypingr   	itertoolsr   __all__compiler   strr   r   r   r   r   <module>   s    
