Docs
Basic Data Manipulation
Filtering and Editing - Part 3
To use this tutorial, download and open this module.
This tutorial is the third in a series of four that go over the basics of filtering and editing data in Proto. In this tutorial, you will learn how to sort Entries alphabetically (text), by value (numbers), or by date (dates).
When you load this module, notice that the entryset on the right is sorted by Last Name.
Toggle the Checkbox above this Table to change the sort order (alphabetically descending to alphabetically ascending). The entryset should now look like this:
This rearrangement of entries is carried out in the Entryset Sorter module labeled “Sort Entryset by Attribute Values.â€
Go to the Builder and take a look at its property panel.
Notice that you can choose to sort by three different attributes, each with an ascending or descending order. The Checkbox we used in the Viewer is connected to the Entryset Sorter to toggle the sort order of the first attribute (in this case, Last Name) from ascending to descending. The output of the Checkbox is set to the input of the Entryset Sorter, shown below:
This connection is saying "When I toggle the checkbox I want to change the sort order (ascending to descending or vice versa) of the first attribute chosen in the property panel of the Entryset Sorter."
One nice feature of the Entryset Sorter is the ability to specify how many entries you want to output. This can be extremely useful when creating things like Top and Bottom 10 lists. To restrict the Entryset Sorter to pass a specified number of entries, click the “Only output the†checkbox in the property panel. Then, select “First†or “Last,†and enter the desired number of entries you want to output.