$sort lists

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 28: Line 28:
  
  
[[File:slt4.png]]
+
[[File:slt4.jpg]]
  
  
 
Setting the sort list function to sort in descending order outputs a list sorted starting with the letter "a" and ending in the letter "y".
 
Setting the sort list function to sort in descending order outputs a list sorted starting with the letter "a" and ending in the letter "y".

Latest revision as of 00:04, 28 December 2016

$sort list is a Data Function. This function returns the original list sorted in ascending or descending order.

List: The populated list being sorted.

Direction: Determines whether the list will be sorted in ascending or descending order.

[edit] Example

To sort the alphabets in the list called %my list in alphabetical order, we will use the sort list function.


add list to list(%my list, $list from text("q,w,e,r,t,y,u,i,o,p,a,c,v,b,n", ","), "Delete", "Global")
type text(<about me textarea>, $sort list(%my list, "Descending"), "Standard")


Slt3.jpg


Setting the sort list function to sort in descending order outputs a list sorted starting with the letter "y" and ending in the letter "a".


add list to list(%my list, $list from text("q,w,e,r,t,y,u,i,o,p,a,c,v,b,n", ","), "Delete", "Global")
type text(<about me textarea>, $sort list(%my list, "Ascending"), "Standard")


Slt4.jpg


Setting the sort list function to sort in descending order outputs a list sorted starting with the letter "a" and ending in the letter "y".

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox