After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321260 - Allow Different Sorting/Order By
Allow Different Sorting/Order By
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Tags
CVS
Other Linux
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-11 20:13 UTC by Gregory S. Hayes
Modified: 2006-02-20 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that allows you to reverse the order of the timeline / directory group selectory (8.56 KB, patch)
2006-01-07 00:05 UTC, Thomas Van Machelen
none Details | Review
New version of the patch. (15.09 KB, patch)
2006-01-17 18:49 UTC, Thomas Van Machelen
none Details | Review

Description Gregory S. Hayes 2005-11-11 20:13:15 UTC
Distribution/Version: FC4

Select two tags, f-spot returns a query of union of the data. Should be
configurable to allow intersection. Possibly also allow a different ORDER BY.
Comment 1 Gabriel Burt 2005-11-11 21:47:36 UTC
What do you mean by a different ORDER BY?

The insersection querying is a duplicate of bug #139796.
Comment 2 Gregory S. Hayes 2005-11-11 22:17:47 UTC
The SQL query in PhotoStore.cs has a hardcoded "ORDER BY photo.time". This
should be configurable to allow a sort by the other fields: id, time,
directory_path, name, description, default_version_id.
Comment 3 Gabriel Burt 2005-11-11 23:09:50 UTC
Renaming bug to indicate the part of it that is unique.
Comment 4 Thomas Van Machelen 2006-01-07 00:05:47 UTC
Created attachment 56894 [details] [review]
Patch that allows you to reverse the order of the timeline / directory group selectory

Since quite some people requested this on the mailing list, i put together a patch that allows you to reverse the sort order, both when viewing order by month and viewing by month.

The sorting can be altered by right-clicking the timeline/directory line and selecting one of two (ascending/descending) sort orders.

Currently the setting isn't stored by the preferences, but this should be quite straightforward.

Comments are, as always welcome.

Regards,
Thomas
Comment 5 Christian Krause 2006-01-14 09:36:59 UTC
(In reply to comment #4)
> Created an attachment (id=56894) [edit]
> Patch that allows you to reverse the order of the timeline / directory group
> selectory
> 
> Since quite some people requested this on the mailing list, i put together a
> patch that allows you to reverse the sort order, both when viewing order by
> month and viewing by month.

I second this patch. I think the reverse timeline is in some circumstances not the best solution. E.g. if you want to show somebody the photo collection of the last vacation. Normally you go to the start picture, start full screen mode and press Space or something like that for the next picture. In this case the reverse mode is unpractial.

There is a little drawback with this patch: The order seems not to be saved between two starts of f-spot.

Nevertheless I want to ask the developers nicely to commit this patch. Thank you very much.
Comment 6 Thomas Van Machelen 2006-01-17 18:49:49 UTC
Created attachment 57546 [details] [review]
New version of the patch.

This patch adds some functionality to the previous version of the patch:
* dropdown now has radio menu items
* position of glass in selector, the active adaptor and its sort order are stored in preferences
Comment 7 Larry Ewing 2006-02-20 17:47:56 UTC
A slightly modified version of the patch has been committed.