- protected void processTemplate(Request request, Template template) throws RedirectException {
- super.processTemplate(request, template);
- Set<Sone> localSones = webInterface.core().localSones();
- template.set("sones", localSones);
+ protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
+ super.processTemplate(request, templateContext);
+ /* get all own identities. */
+ List<Sone> localSones = new ArrayList<Sone>(webInterface.getCore().getLocalSones());
+ Collections.sort(localSones, Sone.NICE_NAME_COMPARATOR);
+ templateContext.set("sones", localSones);