private List<QueryResult> sortQueryResultList(
List<QueryResult> queryResults, String sortByMetKey) {
QueryResult[] resultsArray = queryResults
.toArray(new QueryResult[queryResults.size()]);
QueryResultComparator qrComparator = new QueryResultComparator();
qrComparator.setSortByMetKey(sortByMetKey);
Arrays.sort(resultsArray, qrComparator);
return Arrays.asList(resultsArray);
}