[Xapian-tickets] [Xapian] #697: Omega SORTREVERSE semantics confusing
Xapian
nobody at xapian.org
Mon Dec 14 19:59:39 GMT 2015
#697: Omega SORTREVERSE semantics confusing
--------------------+-----------------------------
Reporter: olly | Owner: olly
Type: defect | Status: assigned
Priority: normal | Milestone: 1.3.4
Component: Omega | Version: 1.3.3
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
--------------------+-----------------------------
Comment (by olly):
(As I noted in comment:11:ticket:311) `reverse` will also be familiar to
people already:
> For example, the UNIX sort program defaults to ascending with "-r" for
reverse (the GNU version even has "--reverse" as the long form of "-r");
[...] Python's sorted function and sort method [have] an optional
"reverse" parameter); PHP's sort() is ascending by default (it offers an
"rsort" function to sort in reverse order).
It's a good thought as to what the audience for Omega is, though it's not
easy to really know who is using it and for what. If you have a server-
side framework, Xapian integration for that is likely a better approach.
Perhaps supporting both a parameter to reverse the order, and a way to
specify reversing via a prefix (or suffix) on `SORT` would be useful. A
`-` prefix seems a bit confusing on a number, but if it's common in ORMs
then perhaps using a `-` prefix is better than a different prefix or
suffix.
--
Ticket URL: <http://trac.xapian.org/ticket/697#comment:6>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list