def get_string_sort_order(s):
 for (i, size) in enumerate(GARMENT_SIZES):
  if (size in s):
   return ((10 + i), s)
 try:
  return (5, parse_decimal_string(s))
 except:
  return (1, s)

def get_string_sort_order ( s ) : for ( i , size ) in enumerate ( GARMENT_SIZES ) : if ( size in s ) : return ( ( 10 + i ) , s ) try : return ( 5 , parse_decimal_string ( s ) ) except : return ( 1 , s )
return a sorting order value for a string that contains a garment size .