fix add score sorting
@@ -531,9 +531,9 @@ public class GsaApiManager extends BaseApiManager implements WebApiManager {
buf.append(".desc");
}
}
+ buf.append(",score.desc");
return buf.toString();
- } else if ("meta".equals(values[0])) {
- if (values.length > 1) {
+ } else if ("meta".equals(values[0]) && values.length > 1) {
final StringBuilder buf = new StringBuilder();
buf.append(values[1]);
if (values.length > 2) {
@@ -543,10 +543,10 @@ public class GsaApiManager extends BaseApiManager implements WebApiManager {
buf.append(".desc");
}
}
+ buf.append(",score.desc");
return buf.toString();
}
}
- }
sortParam = "";
return null;
