Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

sort number in dynamo

import re

liste = IN[0]

def natural_sort(l): 
    convert = lambda text: int(text) if text.isdigit() else text.lower() 
    alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ] 
    return sorted(l, key = alphanum_key)

OUT = natural_sort(liste)
Source by forum.dynamobim.com #
 
PREVIOUS NEXT
Tagged: #sort #number #dynamo
ADD COMMENT
Topic
Name
7+7 =