1. 11 Dec, 2014 1 commit
    • Matt Stancliff's avatar
      Fix zero-ordering SORT when called against lists · e945a546
      Matt Stancliff authored
      People mostly use SORT against lists, but our prior
      behavior was pretending lists were an unordered bag
      requiring a forced-sort when no sort was requested.
      
      We can just use the native list ordering to ensure
      consistency across replicaion and scripting calls.
      
      Closes #2079
      Closes #545 (again)
      e945a546
  2. 06 Oct, 2014 1 commit
  3. 06 Jun, 2014 1 commit
  4. 03 Oct, 2012 1 commit
    • antirez's avatar
      "SORT by nosort" (skip sorting) respect sorted set ordering. · 2ba96271
      antirez authored
      When SORT is called with the option BY set to a string constant not
      inclduing the wildcard character "*", there is no way to sort the output
      so any ordering is valid. This allows the SORT internals to optimize its
      work and don't really sort the output at all.
      
      However it was odd that this option was not able to retain the natural
      order of a sorted set. This feature was requested by users multiple
      times as sometimes to call SORT with GET against sorted sets as a way to
      mass-fetch objects can be handy.
      
      This commit introduces two things:
      
      1) The ability of SORT to return sorted sets elements in their natural
      ordering when `BY nosort` is specified, accordingly to `DESC / ASC` options.
      2) The ability of SORT to optimize this case further if LIMIT is passed
      as well, avoiding to really fetch the whole sorted set, but directly
      obtaining the specified range.
      
      Because in this case the sorting is always deterministic, no
      post-sorting activity is performed when SORT is called from a Lua
      script.
      
      This commit fixes issue #98.
      2ba96271
  5. 17 Apr, 2012 1 commit
  6. 01 Feb, 2012 4 commits
  7. 30 Jan, 2012 1 commit
  8. 19 Dec, 2011 1 commit
  9. 01 Dec, 2011 1 commit
  10. 10 Dec, 2010 1 commit
  11. 15 Oct, 2010 1 commit
  12. 26 Aug, 2010 1 commit
  13. 21 Aug, 2010 4 commits
  14. 02 Jun, 2010 3 commits
  15. 14 May, 2010 2 commits