<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -396,6 +396,10 @@ redis_commands = {
                 if params.alpha == true then
                     table.insert(query, 'ALPHA')
                 end
+
+                if params.store then
+                    table.insert(query, 'STORE ' .. params.store)
+                end
             end
 
             return request.inline(client, command, table.concat(query, ' '))</diff>
      <filename>redis.lua</filename>
    </modified>
    <modified>
      <diff>@@ -215,6 +215,11 @@ context(&quot;Redis client&quot;, function()
                 limit = { 1, 4 }
             }), { &quot;20&quot;,&quot;10&quot;,&quot;3&quot;,&quot;2&quot; })
         end)
+
+        test(&quot;SORT (redis:sort) with parameter STORE&quot;, function() 
+            assert_equal(redis:sort(list01, { store = 'list01_ordered' }), 5)
+            assert_true(redis:exists('list01_ordered'))
+        end)
     end)
 
     --[[  TODO: </diff>
      <filename>spec/client_spec.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9ad23bcdc43532e098b82dc6fe6da9f8b5f0f397</id>
    </parent>
  </parents>
  <author>
    <name>Daniele Alessandri</name>
    <email>suppakilla@gmail.com</email>
  </author>
  <url>http://github.com/nrk/redis-lua/commit/8cbc25d56d245be3139b81f66fd5e53584422593</url>
  <id>8cbc25d56d245be3139b81f66fd5e53584422593</id>
  <committed-date>2009-11-01T11:53:40-08:00</committed-date>
  <authored-date>2009-11-01T11:53:40-08:00</authored-date>
  <message>Implemented the STORE parameter for SORT (redis:sort).</message>
  <tree>029c667d6c589c5c34b6689bba4dc0ff08c4b747</tree>
  <committer>
    <name>Daniele Alessandri</name>
    <email>suppakilla@gmail.com</email>
  </committer>
</commit>
