Sort:  

It is just an example of following the user accounts in the trending tags.

The idea is that if a user submits a post that makes it to the trending category, then that user should be worthy enough to follow.

Do you have any specific questions about the code?