Changeset c5579fa3


Ignore:
Timestamp:
Sep 4, 2005 7:33:00 PM (15 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3398688
Parents:
d4a8595
git-author:
jrandom <jrandom> (09/04/05 19:33:00)
git-committer:
zzz <zzz@…> (09/04/05 19:33:00)
Message:

(the filtered blogs may be out of order)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/syndie/java/src/net/i2p/syndie/web/ArchiveViewerBean.java

    rd4a8595 rc5579fa3  
    476476                }
    477477            }
     478            sort(rv);
    478479            if (rv.size() > 0)
    479480                return rv;
     
    498499            }
    499500        }
     501    }
     502   
     503    private static void sort(List uris) {
     504        TreeMap ordered = new TreeMap();
     505        while (uris.size() > 0) {
     506            BlogURI uri = (BlogURI)uris.remove(0);
     507            int off = 0;
     508            while (ordered.containsKey(new Long(0 - off - uri.getEntryId())))
     509                off++;
     510            ordered.put(new Long(0-off-uri.getEntryId()), uri);
     511        }
     512        for (Iterator iter = ordered.values().iterator(); iter.hasNext(); )
     513            uris.add(iter.next());
    500514    }
    501515   
Note: See TracChangeset for help on using the changeset viewer.