bestDocAction.addWhereClause("DOCUMENT.TIME$TIME_STAMP < " + endTstamp);
}
if(context.containsKey("sorting")) {
String sorting = context.getString("sorting");
if (sorting.equals("TIME")) {
<BUG>ArrayList<String> orderBy = new ArrayList<String>();
orderBy.add("DOCUMENT.TIME$TIME_STAMP");</BUG>
bestDocAction.setOrderBy(orderBy);
}
}

bestDocAction.addWhereClause("DOCUMENT.TIME$TIME_STAMP < " + endTstamp);
}
if(context.containsKey("sorting")) {
String sorting = context.getString("sorting");
if (sorting.equals("TIME")) {
ArrayList<String> orderBy = bestDocAction.getOrderBy();
orderBy.add("DOCUMENT.TIME$TIME_STAMP");
bestDocAction.setOrderBy(orderBy);
}
}
