RSS

Shuffling / Ordering Lists

05 Mar

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:

undefined


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 🙂

Advertisements
 
10 Comments

Posted by on March 5, 2017 in Uncategorized

 

10 responses to “Shuffling / Ordering Lists

  1. 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.

     
  2. 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.

     
  3. 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

     
  4. 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

       
  5. 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” >

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: