Join AppyBuilder community at http://Community.AppyBuilder.com
Lists are data structures that are used to create and/or manipulate different sets of values/elements.
In AppyBuilder / AI, Lists can be created by converting a CSV data into a List such as below:
Some apps, such as game apps (e.g. cards) require shuffling or randomizing a list. The shuffling would require coding (sometimes complicated) to make the shuffling happen. AppyBuilder has now developed an extension that can be used both in AppyBuilder OR MIT AI to perform shuffling using only one Shuffle block as shown below!
The extension also includes Sorting block for sorting a list in ASCeding (1) or DESCending (-1) order:
Wanna reverse a list? Then use Reverse block as shown below:
Need to get rid of duplicate items? Then use RemoveDuplicates block like shown below:
Looking for .aix? Get it from AppyBuilder community HERE
Website: http://AppyBuilder.com
Use AppyBuilder GOLD for FREE: http://FreeGold.AppyBuilder.com
Share, Like us below
Justin Stowers
December 16, 2017 at 11:47 pm
When I feed a list into the sort block it doesn’t actually sort it. Am I doing something wrong? I have checked to make sure it is in fact a list.
Hossein Amerkashi
December 17, 2017 at 8:03 am
It should work. You can post screenshot of your blocks to community.AppyBuilder.com and we’ll help you there
ashish
May 6, 2018 at 4:21 am
Hey, how do I use your extension for this
In the CSV file (contains a single row with suppose 10 col), in my app at a click of a button how can I display the content of that row in SEQUENTIAL order. I know how to use pick a random list, but not able to do it sequentially!
bombur (Christian Hoehne)
October 25, 2017 at 4:35 am
Hi, I would like to try your ListUtils extension, but I cannot find the download link for the .aix file on this page. Where can I find it? I also followed the link to the AppyBuilder community, I also registeredan account there, but then I am lost. Sorry for this stupid question, it is the first time for me. Please help.
Hossein Amerkashi
October 25, 2017 at 7:17 am
You can get extension from here:
http://community.appybuilder.com/t/about-the-extensions-category/2?source_topic_id=1897
Germán
April 27, 2017 at 6:14 am
Hi Hossein, thank you for te Appy Builder, it’s a great tool!
Do you know how to create a list of more than 50 items with the make a list mutator? There’s a point where I can’t items after the last item anymore.
Hossein Amerkashi
April 27, 2017 at 7:37 am
To create large lists, there are many options such as:
1. Load data from file
2. Use “list from csv row”
For technical questions, you can post to AppyBuilder forum at http://forum.AppyBuilder.com
Also, please checkout http://AppyBuilder.com
Rudolph Karstadt
March 27, 2017 at 4:27 pm
Thank you for your extension, it is very useful.
I found a little ‘issue’. I’ve used the SortList to sort a List in a List.
((2 a b c d e)(1 k l m n o)(3 r s t u v)).
I don’t know if the extension is indended for this, but it works and sort thy List by the first item. The result is a List with 3 items:
((1 k l m n o)(2 a b c d e)(3 r s t u v)). – OK – but the items (1 k l m n o)… are no longer Lists but Text with spaces. So the items k or l … can not seperated with the Select ListItem block.
I have found out, that the ‘Split at Spaces’ block can convert it back to a List.(after removing the parentheses)
rudolph
Paolo
March 7, 2017 at 5:04 am
Hi Hossein, I have tested your extension “ListUtils.aix” , it works well and is very fast!
It works fine only with string lists…
If you use a list of numbers, for example: “1, 2, 3, 10”, it sorts them so: “1, 10, 2, 3”
Can you create an extension for a numeric list?
Hossein Amerkashi
March 7, 2017 at 7:14 am
Paolo, Glad that you like the extension.
Sort is string-based not numeric based. It behaves sames sorting data in Excel when you have mixed numeric / alpha data
Cory Chapman
May 21, 2017 at 10:41 am
Can it be updates to sort numeric if no alpha data is present in the list?
Hossein Amerkashi
October 25, 2017 at 7:18 am
Everything is treated as strings NOT numbers.
For further questions, please post in community forum here: http://Community.AppyBuilder.com
radiobip
March 6, 2017 at 8:06 am
Many thanks Hossein. Congratulations on the excellent work and dedication in improving our work tools. Hug!
Carlos Alberto
2017-03-05 22:45 GMT-03:00 Hossein Amerkashi’s Blog :
> Hossein Amerkashi posted: “Lists are data structures that are used to > create and/or manipulate different sets of values/elements. Lists can be > created using by converting a CSV data into a List such as below: Some > apps, such as game apps (e.g. cards) require shuffling or random” >