diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-13 20:11:20 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-13 20:11:20 +0000 |
commit | 821a7c1828029e31c1e9e55aa6fd42694ac0a072 (patch) | |
tree | 344e4711b860b1766bf46121da108f7636fb3a85 /java/sca/samples | |
parent | bd4fbd7058f1285c24481170d10e34c316cd8e7c (diff) |
TUSCANY-2458 - Applying Dan's patch to use last updated field as the sorting key
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@685663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples')
-rw-r--r-- | java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java | 4 | ||||
-rw-r--r-- | java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java b/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java index ea7d252ed4..f7ead126a7 100644 --- a/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java +++ b/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java @@ -42,8 +42,8 @@ public class SortImpl implements Sort { entriesArray = (Entry[])entries.toArray(entriesArray); Arrays.sort(entriesArray, new Comparator() { public int compare(final Object xObj, final Object yObj) { - Date xDate = ((Entry)xObj).getPublished(); - Date yDate = ((Entry)yObj).getPublished(); + Date xDate = ((Entry)xObj).getUpdated(); + Date yDate = ((Entry)yObj).getUpdated(); if (xDate == null) return -1; if (newFirst) diff --git a/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java b/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java index ea7d252ed4..f7ead126a7 100644 --- a/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java +++ b/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java @@ -42,8 +42,8 @@ public class SortImpl implements Sort { entriesArray = (Entry[])entries.toArray(entriesArray); Arrays.sort(entriesArray, new Comparator() { public int compare(final Object xObj, final Object yObj) { - Date xDate = ((Entry)xObj).getPublished(); - Date yDate = ((Entry)yObj).getPublished(); + Date xDate = ((Entry)xObj).getUpdated(); + Date yDate = ((Entry)yObj).getUpdated(); if (xDate == null) return -1; if (newFirst) |