[f-spot: 7/16] Order by filename ASC, so that detached versions appear always after the original photo, even if Rev
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot: 7/16] Order by filename ASC, so that detached versions appear always after the original photo, even if Rev
- Date: Tue, 25 May 2010 12:48:46 +0000 (UTC)
commit 51928be80a138cadf3a8f3507c88dd01096cf0ae
Author: Anton Keks <anton azib net>
Date: Sun Aug 2 23:22:55 2009 +0300
Order by filename ASC, so that detached versions appear always after the original photo, even if Reverse Order is used
src/Query/OrderByTime.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Query/OrderByTime.cs b/src/Query/OrderByTime.cs
index 3383fd0..f8eb2f6 100644
--- a/src/Query/OrderByTime.cs
+++ b/src/Query/OrderByTime.cs
@@ -29,7 +29,8 @@ namespace FSpot.Query {
public string SqlClause ()
{
- return String.Format (" time {0}, filename {0} ", asc ? "ASC" : "DESC");
+ // filenames must always appear in alphabetical order if times are the same
+ return String.Format (" time {0}, filename ASC ", asc ? "ASC" : "DESC");
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]