Sorting and Filtering Lists

To change the way data is displayed in a list.

If you want to make it so that your app only displays a particular subset of your data, you can create a data filter.

For example, let's take the app we've previously been working on, which allows you to browse vacation spots. Suppose you input all of your data into a Trips Collection with many Properties, one of which is a True/False criteria describing whether or not the trip is public. Let's say for your app, you only want to display trips that are public. You also want to sort the trips from low cost to high cost.

  1. Insert a list

  2. Select the database collection you want listed

  3. Click 'Add another filter' to insert a custom filter

  4. Select which Property you want the filter to depend on (in this case, Public)

  5. Choose the condition of the Property that you want to filter for (True/False, Between, Includes, Excludes, etc)

  6. Under Sorting select how you want to sort your list (in this example, Cost- Low to High)

After filtering, only the trips that had been tagged as public showed up in the preview.

Last updated