Where does finding and sorting photos for the Instagram Stories feature happen?
That's right!
The server finds and sorts the photos using Instagram's database.