if (listOfMaps == null || sortKeys == null)
return null;
List<Map<Object, Object>> toSort = FastList.newInstance();
toSort.addAll(listOfMaps);
try {
MapComparator mc = new MapComparator(sortKeys);
Collections.sort(toSort, mc);
} catch (Exception e) {
Debug.logError(e, "Problems sorting list of maps; returning null.", module);
return null;
}