My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 536: allow sorting for all columns
44 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by kevin.la...@gmail.com, Apr 16, 2010
When I'm looking at the list of changes (open or all or whatever), I really 
want to be able to sort on various columns.  I don't see any way to do this 
in the current gerrit.
Apr 16, 2010
#1 sop@google.com
Sorting on any given column requires that we have indexes for
every single one so that the database can efficiently range
scan to produce the results.

On smaller installations its no big deal, the sort can of
course take place in memory on the fly, computers are quite
fast at this.  But on larger installations that sort time
can contribute a lot of load to the server.

So thus far we only support sorting the all change lists
by last update time, descending, as that is the only field
we have indexed in the database.

We probably could open this up a bit more, there are a few
other indexes present, but I'd rather focus on things like
search filters or migrating out of SQL onto Git, where the
whole problem of search and sort becomes much more complex.
Status: Accepted
Jul 6, 2012
#2 jrobert...@gmail.com
It would be invaluable to me to be able to sort a topic by the lineage of the commits.
Aug 10, 2012
#3 sword.l....@gmail.com
yes, It should be very convenient to sort by branch, owner,projects...
Nov 21, 2012
#4 jeremy.a...@gmail.com
I agree. Sorting a topic by commit order (the same way it's done in git log and tig) would make a lot of sense.
Dec 12, 2012
#5 Iso.poc...@gmail.com
Could you add option for queries and for REST API to specify sort attribute:

eg:
is:open project:XXX sort:Update
Apr 18, 2013
#6 yoshi...@gmail.com
Why not do it on the client (browser) side?

Wikimedia is a good example:
http://en.wikipedia.org/wiki/Help:Sorting

Of course it will only work on the displayed results.

Mar 27, 2014
#7 jhans...@meetme.com
Almost 4 years since there's been any productive movement here.

The dashboard search results (under "My Reviews" heading) is sorted the way my reviewers want to see them.  But the view that they get has them sorted by last updated time.  Why should I see them in the correct order, but no one else can?  Is there a way to make a dashboard to get the desired sorting?
May 22, 2015
#8 joel.sch...@dental-wings.com
This is more than minor IMO.

We sometimes have a rush of reviews coming in and in theory we should start by the oldest one.

But this list is sorted by the new ones so these get tackled first and the older ones get forgotten if no one else is there to push them.

Please do consider this bug as more important than just eye candy.
Oct 5, 2015
#9 derhecht...@googlemail.com
Vote up! May also/instead of this a possibility to sort DESC by default by setting to get rid of what joel mentioned in comment #8.
Sign in to add a comment

Powered by Google Project Hosting