X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FKnownSonesPage.java;h=ff434b30f094e231aa4a76b97580181ceb99a91b;hb=2c5b76a2fbce16ef33f079a3de9ae9fc9a9d30b8;hp=ea6f786f9456f2a1ee04ecde10c12dbaeeb0270b;hpb=bb0081d5e34a59ccfb275c166e5935a2acb65a2c;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java b/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java index ea6f786..ff434b3 100644 --- a/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java +++ b/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java @@ -42,7 +42,7 @@ public class KnownSonesPage extends SoneTemplatePage { * The Sone web interface */ public KnownSonesPage(Template template, WebInterface webInterface) { - super("knownSones.html", template, "Page.KnownSones.Title", webInterface); + super("knownSones.html", template, "Page.KnownSones.Title", webInterface, false); } // @@ -55,12 +55,12 @@ public class KnownSonesPage extends SoneTemplatePage { @Override protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); - List knownSones = new ArrayList(webInterface.core().getKnownSones()); + List knownSones = new ArrayList(webInterface.core().getSones()); Collections.sort(knownSones, new Comparator() { @Override public int compare(Sone leftSone, Sone rightSone) { - int diff = SoneAccessor.getNiceName(leftSone).compareTo(SoneAccessor.getNiceName(rightSone)); + int diff = SoneAccessor.getNiceName(leftSone).compareToIgnoreCase(SoneAccessor.getNiceName(rightSone)); if (diff != 0) { return diff; }