unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Proposed New sort API
@ 2017-12-10 15:49 David Bremner
  2017-12-10 15:49 ` [PATCH 1/2] WIP: groundwork for new sorting API David Bremner
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: David Bremner @ 2017-12-10 15:49 UTC (permalink / raw)
  To: notmuch

I started looking at William's sorting patches [1], but the
proliferation of sorting options bugged me a bit. I decided to sketch
out a new more flexible API.

In the new API, there is is a sort "key", currently mapped one-to-one
to value slots, but potentially could do more sophisticated things
like making keys up dynamically (e.g. preprocessing subjects).

The second parameter is a sort "type". Currently this is just
ascending or descending, but other potential options include
sort_by_relevance_then_value

[1]: id:20170926053547.18564-1-jb55@jb55.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-21 11:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-10 15:49 Proposed New sort API David Bremner
2017-12-10 15:49 ` [PATCH 1/2] WIP: groundwork for new sorting API David Bremner
2018-10-08 20:51   ` William Casarin
2018-10-20 11:51     ` David Bremner
2017-12-10 15:49 ` [PATCH 2/2] WIP: use new sort key/type David Bremner
2017-12-10 19:37 ` Proposed New sort API William Casarin
2018-10-09  3:05 ` William Casarin
2018-10-20 11:43   ` David Bremner
2018-10-20 17:15     ` William Casarin
2018-10-21 11:44       ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).