Hm, after looking at the code, I don't think we can provide that at the moment. We do not have a global message database, and run over each folder, returning all messages as soon as we found them. IF we have to hold back all messages until we found all and can sort them, the query will be massively slowed down. Are your querying all folders, or just a specific folder? I could add the `sort` property to `browser.messages.list()`, which only acts on a specific folder.
Bug 1977855 Comment 5 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Hm, after looking at the code, I don't think we can provide that at the moment. We do not have a global message database, and run over each folder, returning all messages as soon as we found them. If we have to hold back all messages until we found all and can sort them, the query will be massively slowed down. Are your querying all folders, or just a specific folder? I could add the `sort` property to `browser.messages.list()`, which only acts on a specific folder.
Hm, after looking at the code, I don't think we can provide that at the moment. We do not have a global message database, and run over each folder, returning all messages as soon as we found them. If we have to hold back all messages until we have found all to sort them, the query will be massively slowed down. Are you querying all folders, or just a specific folder? I could add the `sort` property to `browser.messages.list()`, which only acts on a specific folder.