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?

    • A Phlaming Phoenix@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Okay, I found this, which is essentially what I was looking for: https://lemmyverse.net/communities?order=subscribers I put a filter on that for just lemm.ee and got what I wanted. Thanks!

      So I guess that’s a solved problem, but the question of whether this should be/is going to be implemented directly in the web client is still open. I don’t suppose we have anyone here better acquainted with the source code who can answer that?

      • PixelPassport@chat.maiion.com
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        Also in lemmyverse.net you can click the home icon at the top right and set your home instance, then every link you open will be in your home instance ready for you to hit ‘subscribe’. Super useful!

    • A Phlaming Phoenix@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      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.