7 votes

[SOLVED] How is the inbox sorted?

I'm here staring at my inbox for the third time trying to figure out how the hell the sorting in it works. It isn't alphabetically by subject or user, it isn't the recency of the first message (nor is it the recency of the latest message), and it isn't the number of messages. Testing it now, it also isn't the most recent you've opened, so I have no idea how this works or how to look for anything, not that it's big enough to matter much yet.

Am I missing something obvious? I feel so lost.

3 comments

  1. [3]
    what
    Link
    Looking at the source code, it's (supposed to be) sorted by time since last reply: conversations = ( request.query(MessageConversation) .filter( or_( MessageConversation.recipient == request.user,...

    Looking at the source code, it's (supposed to be) sorted by time since last reply:

    conversations = (
            request.query(MessageConversation)
            .filter(
                or_(
                    MessageConversation.recipient == request.user,
                    and_(
                        MessageConversation.sender == request.user,
                        MessageConversation.num_replies > 0,
                    ),
                )
            )
            .order_by(desc(MessageConversation.last_reply_time))
            .all()
        )
    

    (specifically the .order_by(desc(MessageConversation.last_reply_time)) line)

    But it doesn't look like it's working properly.

    11 votes
    1. [2]
      Whom
      Link Parent
      Thank you for helping me avoid a personal crisis over not being able to see something obvious!

      Thank you for helping me avoid a personal crisis over not being able to see something obvious!

      6 votes
      1. Deimos
        Link Parent
        The sorting isn't working properly for one-message conversations, I registered an issue for it long ago but haven't looked at fixing it yet: https://gitlab.com/tildes/tildes/issues/114 (@what so...

        The sorting isn't working properly for one-message conversations, I registered an issue for it long ago but haven't looked at fixing it yet: https://gitlab.com/tildes/tildes/issues/114

        (@what so you see this as well)

        9 votes