question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing a “sort by” argument to the ListVieworRecyclerView Firebaseadapters

Say I have a list with github repos and in real time of course people are *_starring *_them, it would be neat if we could sort by “most starred repos”

👍

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
raphaelsehercommented, Mar 29, 2016

You can sort your RecyclerView by passing a Query instead of a normal reference.

Query queryRef = mRef.orderByChild("points");
mAdapter = new FirebaseRecyclerAdapter<Eyesore, EyesoreViewHolder>(Eyesore.class,
            R.layout.eyesore_recycler_item, EyesoreViewHolder.class, queryRef) { ... }
0reactions
nicholaslie90commented, Nov 2, 2016

I might have a case around sorting FirebaseRecyclerAdapter locally: http://stackoverflow.com/questions/40377794/android-client-side-sorting-with-firebaserecycleradapter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lists & Table Sorting Support - Oxygen XML Editor
This video presentation walks you through the content sorting support for tables and lists offered by Oxygen.
Read more >
Sort data in a range or table - Microsoft Support
Sorting data helps you quickly visualize and understand your data better, organize and find the data that you want, and ultimately make more...
Read more >
Customer Support - Smarter Sorting
Our customer support team is dedicated to helping you. Reach out by phone, email, or check out our Smarter Support Site for helpful...
Read more >
Help:Sorting - Wikipedia
This page is about sorting of tables. For sorting of categories, see Wikipedia:Categorization § Sort keys. ... This help page is a how-to...
Read more >
Sorting: Why Children Need this Skill - Especially Education
Children are naturally attracted to sorting objects and do not need much direction. We all have a need to feel in control of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found