RSS

Shuffling / Ordering Lists

05 Mar

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:

Interested? Get the extension here: https://sourceforge.net/projects/appybuilder

Website: http://AppyBuilder.com

Try AppyBuilder GOLD for FREE: http://FreeGold.AppyBuilder.com

Share, Like us below 🙂

Advertisements
 
3 Comments

Posted by on March 5, 2017 in Uncategorized

 

3 responses to “Shuffling / Ordering Lists

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

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