diff --git a/SignalMessaging/utils/ConversationSearcher.swift b/SignalMessaging/utils/ConversationSearcher.swift index d7115335d..e13156c72 100644 --- a/SignalMessaging/utils/ConversationSearcher.swift +++ b/SignalMessaging/utils/ConversationSearcher.swift @@ -138,10 +138,10 @@ public class ConversationSearcher: NSObject { // Order the conversation and message results in reverse chronological order. // The contact results are pre-sorted by display name. - conversations = conversations.sorted(by: >) - messages = messages.sorted(by: >) + conversations.sort(by: >) + messages.sort(by: >) // Order "other" contact results by display name. - otherContacts = otherContacts.sorted() + otherContacts.sort() return SearchResultSet(searchText: searchText, conversations: conversations, contacts: otherContacts, messages: messages) }