Skip navigation

Filter and sort data

Filter and sort data: Android App Development Essentials: Local Data Storage
Filter and sort data: Android App Development Essentials: Local Data Storage

So far in the sample application, the data items are displayed in their raw sort order, but we'd like to be able to sort and filter the data. Learn how to apply a sort order with an argument of the query() method. The sort order string is an SQL clause. If you want to sort by more than one column, pass in a comma-delimited list of column names. Or if you want sort in descending order, just pass in the DESC SQL keyword. Whatever string you pass in just becomes part of the SQL statement.

  • Overview
  • Transcript
  • View Offline
Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 9m
Duration
12,057
Views
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now