mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
A sender or subject order is collated by the server. Stalwart 1.0 ranks byte-order sort keys (lowercased name and address, the thread name for the subject) and puts empty values last in both directions. The client re-sorted every page and every thread group with `localeCompare` and empty values first, which turned that order around. Pages and thread groups whose order has a sender or subject level now keep the query's order (the Email/get list is put back into the query's id order). Other orders keep the client-side safety sort, and the unified view still merges accounts with the client comparator.