I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c5579fa3 authored by jrandom's avatar jrandom Committed by zzz
Browse files

(the filtered blogs may be out of order)

parent d4a85954
No related branches found
No related tags found
No related merge requests found
......@@ -475,6 +475,7 @@ public class ArchiveViewerBean {
}
}
}
sort(rv);
if (rv.size() > 0)
return rv;
}
......@@ -499,6 +500,19 @@ public class ArchiveViewerBean {
}
}
private static void sort(List uris) {
TreeMap ordered = new TreeMap();
while (uris.size() > 0) {
BlogURI uri = (BlogURI)uris.remove(0);
int off = 0;
while (ordered.containsKey(new Long(0 - off - uri.getEntryId())))
off++;
ordered.put(new Long(0-off-uri.getEntryId()), uri);
}
for (Iterator iter = ordered.values().iterator(); iter.hasNext(); )
uris.add(iter.next());
}
public static final String getString(Map parameters, String param) {
if ( (parameters == null) || (parameters.get(param) == null) )
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment