added sorting to chats, oops