
    Xj                     ^    d dl Z d dlmZ d dlmZ dgZ e j                  d      ZdedefdZ	y)	    N)Tuple)cyclenatural_comparison_keyz(\d+)keyreturnc           	      r    t        d t        t        j                  |       t	        d            D              S )zComparison key function for sorting strings by natural sort order.

    See: https://en.wikipedia.org/wiki/Natural_sort_order
    c              3   D   K   | ]  \  }}|rt        |      |fn|  y w)N)int).0partis_digits      l/var/www/html/myl_app/scheduler-service/venv/lib/python3.12/site-packages/graphql/pyutils/natural_compare.py	<genexpr>z)natural_comparison_key.<locals>.<genexpr>   s,      D( &TD4/s    )FT)tuplezip
_re_digitssplitr   )r   s    r   r   r      s5    
  !*"2"23"7}9MN      )
retypingr   	itertoolsr   __all__compiler   strr    r   r   <module>r      s9    	  #
$RZZ!
  r   