public RedisValue Sort(SortBuilder sb) { // todo: clone first if (!String.IsNullOrEmpty(sb.ResultKey)) { sb.StoreTo(TransformKey(sb.ResultKey)); } if (!String.IsNullOrEmpty(sb.Key)) { sb.Key = TransformKey(sb.Key); } // TODO: need to transform patterns as well return ExecValue(sb.Key, new SortCommand(sb)); }