@Override
public Long sort(byte[] key, SortParameters params, byte[] storeKey) {
Sort sort = jredis.sort(JredisUtils.decode(key));
JredisUtils.applySortingParams(sort, params, null);
try {
return Support.unpackValue(sort.exec());
} catch (Exception ex) {
throw convertJredisAccessException(ex);
}
}