Aşağıda ki codu ArraySort.nsd olarak notepad ile (veya linux te vi/nano/gedit…) kaydederseniz programa atıp çalıştırabilirsiniz. Basit bir dizi sıralama algoritmasının çalışması.
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:nsd="https://structorizer.fisch.lu" version="3.28-09" preRepeat="until " postFor="to" preReturn="return" postForIn="in" preWhile="while " output="OUTPUT" input="INPUT" preFor="for" preExit="exit" preLeave="leave" ignoreCase="true" preForIn="foreach" stepFor="by" author="can" created="2018-10-07" changedby="can" changed="2018-10-07" origin="Structorizer 3.28-09" text=""ArraySort"" comment="""" color="ffffff" type="program" style="nice">
<children>
<instruction text=""dizi <- {2,5,-2,6,-3,8,0,-7,-9,4 }"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""sortedArray <- {0,0,0,0,0,0,0,0,0,0}"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""n1 <- length(dizi)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""n <- n1-1"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""max <- -999"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""indexHolder <- 0"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<for text=""for k <- 0 to n"" comment="""" counterVar="k" startValue="0" endValue="n" stepConst="1" style="COUNTER" color="ffffff" disabled="0">
<qFor>
<for text=""for i <- 0 to n"" comment="""" counterVar="i" startValue="0" endValue="n" stepConst="1" style="COUNTER" color="ffffff" disabled="0">
<qFor>
<alternative text=""(dizi[i] > max)"" comment="""" color="ffffff" disabled="0">
<qTrue>
<instruction text=""max:= dizi[i]"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""indexHolder := i"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
</qTrue>
<qFalse color="ffffff">
</qFalse>
</alternative>
</qFor>
</for>
<instruction text=""sortedArray[k] :=dizi[indexHolder]"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""dizi[indexHolder] := -999"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
<instruction text=""max := -999"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
</qFor>
</for>
<for text=""for j <- 0 to n"" comment="""" counterVar="j" startValue="0" endValue="n" stepConst="1" style="COUNTER" color="ffffff" disabled="0">
<qFor>
<instruction text=""Output sortedArray[j]"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
</qFor>
</for>
</children>
</root>
]]>