import javax.servlet.http.HttpServletResponse;
import net.pterodactylus.demoscenemusic.data.Artist;
+import net.pterodactylus.demoscenemusic.data.Style;
import net.pterodactylus.demoscenemusic.data.Track;
import net.pterodactylus.demoscenemusic.page.ServletRequest;
import net.pterodactylus.util.io.Closer;
}
});
+ sortFilter.addComparator(Style.class, new Comparator<Style>() {
+
+ @Override
+ public int compare(Style leftStyle, Style rightStyle) {
+ return leftStyle.name().compareToIgnoreCase(rightStyle.name());
+ }
+
+ });
templateContextFactory.addFilter("sort", sortFilter);
templateContextFactory.addTemplateObject("core", core);