sort tweak

This commit is contained in:
zzz
2010-11-21 20:49:45 +00:00
parent d710da5c11
commit b5ae626425

View File

@ -618,10 +618,10 @@ public class I2PSnarkServlet extends Default {
if (r.startsWith(skip)) if (r.startsWith(skip))
r = r.substring(skip.length()); r = r.substring(skip.length());
String llc = l.toLowerCase(); String llc = l.toLowerCase();
if (llc.startsWith("the ") || llc.startsWith("the.")) if (llc.startsWith("the ") || llc.startsWith("the.") || llc.startsWith("the_"))
l = l.substring(4); l = l.substring(4);
String rlc = r.toLowerCase(); String rlc = r.toLowerCase();
if (rlc.startsWith("the ") || rlc.startsWith("the.")) if (rlc.startsWith("the ") || rlc.startsWith("the.") || rlc.startsWith("the_"))
r = r.substring(4); r = r.substring(4);
return collator.compare(l, r); return collator.compare(l, r);
} }