Using a desktop browser, I click “Communities” in the top-left, taking me to https://lemm.ee/communities Now I see a list of communities, and I can filter by those I’m subbed to, those on the local instance, and “all” federated communities. This all works well. However, I would like to sort this list by the number of subscribers. The column header changes the mouse cursor so it looks clickable, but nothing apparently happens. There are no messages in the JavaScript console, and no requests are made to the server.
So I dug in a little bit and found that the ListCommunities API call supports a “sort” field. However, the valid SortType
values it refers to don’t appear to align very well with the fields on the Communities page. I tried a handful of odd sort values in the URL like ?sort=Hot
but they didn’t change anything in the results.
Is this just a not-yet-implemented feature? If I were to raise an issue against the source code about this, what would be the appropriate codebase to do that in?
I played around with the direct API call a bit and ended up filing a ticket about it against the backend. It looks like the API doesn’t implement sorting on community listings very well.