public RedisValue Sort(string key, string by, bool alpha, bool descending, int? start, int? count) { var transformedKey = TransformKey(key); var sb = new SortBuilder(transformedKey) .Alpha(alpha) .Desc(descending); if (!String.IsNullOrEmpty(by)) sb.By(by); if (start.HasValue && count.HasValue) sb.Limit(start.Value, count.Value); var command = new SortCommand(sb); return ExecValue(key, command); }