[solang] Sort the photos in descending order based on nfo:fileLastModified
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [solang] Sort the photos in descending order based on nfo:fileLastModified
- Date: Tue, 13 Apr 2010 16:02:22 +0000 (UTC)
commit 2cc4e7ecc95d8ae16c4d5b6d02ce4e1103878c4e
Author: Debarshi Ray <rishi gnu org>
Date: Fri Apr 9 22:38:53 2010 +0300
Sort the photos in descending order based on nfo:fileLastModified
src/common/database.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/common/database.cpp b/src/common/database.cpp
index 9afda4f..784ab78 100644
--- a/src/common/database.cpp
+++ b/src/common/database.cpp
@@ -167,7 +167,8 @@ Database::search_async(const IPhotoSearchCriteriaList & criteria,
"WHERE {"
" ?photo a nmm:Photo ."
" %1"
- "}",
+ "}"
+ "ORDER BY DESC(nfo:fileLastModified(?photo))",
clauses);
trackerClient_.sparql_query_async(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]