Changes to sortdemo

ffff:72.234.190.31
ffff:72.234.190.31
2 months ago
Updated index.scroll
index.scroll
Changed around line 1
- sort 832 2 3 43 234 324 312
-
+ sort 832 2 3 43 234 324 312
ffff:72.234.190.31
ffff:72.234.190.31
2 months ago
Updated index.scroll
index.scroll
Changed around line 1
- theme roboto
- Hello World my name is
+ sort 832 2 3 43 234 324 312
+
+
+
+
+ sortParser
+ description Sort a list of numbers in ascending order.
+ extends abstractScrollParser
+ catchAllAtomType numberAtom
+ cueFromId
+ example
+ sort 3 453 4 24 4 34
+ javascript
+ buildHtml() {
+ const numbers = this.getAtomsFrom(1).map(num => parseFloat(num))
+ const sorted = numbers.sort((a, b) => a - b)
+ return `${sorted.join(" ")}`
+ }
+ buildTxt() {
+ const numbers = this.getAtomsFrom(1).map(num => parseFloat(num))
+ const sorted = numbers.sort((a, b) => a - b)
+ return sorted.join(" ")
+ }
+
+
+ font Verdana
root
root
2 months ago
initial blank_template template
.gitignore
Changed around line 1
+ .DS_Store
+ *.html
+ *.txt
+ *.xml
+ *.css
+ *.js
+ *.csv
+ requests.scroll
index.scroll
Changed around line 1
+ buildHtml
+ theme roboto
+
+ Hello World my name is