Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Jonathan Ortheden
Jonathan Ortheden
7,044 Points

Ribbit: Group media by user and sort by date

Hey Guys!

Everyone love the new feature in SnapChat where all images/videos are grouped by user and sorted by date and now I'm wondering how to do the same in Ribbit.

I also want to display viewed photos/videos grouped by user.

I made a function for grouping them in a dictionary with the userId as key and an array of photos as value. The problem is that is is very difficult sorting it by not displayed images/date at the same time.

I'd love a response, Thanks guys!