Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Csharp :: All and Any linq c# examlpe replace 
Csharp :: .net core string compare ignore case and accents 
Csharp :: most popular products code using asp.net core in visual studio code 
Csharp :: how to pass id to modal in asp.net mvc 
Csharp :: .netstandard distinctby iqueryable 
Csharp :: how to create more accurate searching c# 
Csharp :: Transparent UserControl 
Csharp :: c# register write value 
Csharp :: unity variable in editor limit value 
Csharp :: c# razor @html.actionlink( edit bootstrap 
Csharp :: bitter foods examplews 
Csharp :: What does "DateTime?" mean in C#? 
Csharp :: process which converts natural sugar into alcohol by yeast 
Csharp :: Compiling C# Example 
Csharp :: secret 
Csharp :: c# office interop copy slide to another pppt 
Csharp :: Make a variable public without showing in the inspector 
Csharp :: regex ip rage detect c# 
Csharp :: convert string to boolean c# 
Csharp :: get position of gameobject unity 
Csharp :: string stringbuilder c# 
Csharp :: c# get folder of full ilepath 
Csharp :: c# application exit 
Csharp :: c# code process to start any exe application 
Csharp :: how to use K2 games Games parallax background 
Csharp :: black lives matter update arsenal 
Html :: starter data jpa maven dependency 
Html :: bootstrap 4 cdn 
Html :: divi font awesome 
Html :: slick slider cdn 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =