Skip navigation

Filter and sort data

Filter and sort data: Android Development Essential Training: Local Data Storage
Filter and sort data: Android Development Essential Training: 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.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 56m
Duration
194,132
Views
Show More Show Less

Q: This course was updated on 12/15/2017. What changed?

A: New videos were added that cover bundling static data in a resource file, managing SQLite transactions, and managing SQLite databases with Room.

Q: This course was updated on 12/15/2017. What changed?

A: New videos were added that cover bundling static data in a resource file, managing SQLite transactions, and managing SQLite databases with Room.

Continue Assessment

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

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.