Matt Stancliff 9cc73e9864 Fix key extraction for SORT
We only want to use the last STORE key, but we have to record
we actually found a STORE key so we can increment the final return
key count.

Test added to prevent further regression.

Closes #1883, #1645, #1647
2014-08-07 16:14:15 +02:00
..
2012-04-13 17:52:33 -07:00
2014-08-07 12:12:54 +02:00
2013-01-19 10:59:44 +01:00
2014-08-07 16:14:15 +02:00
2014-08-07 12:12:54 +02:00
2014-04-22 16:14:38 +02:00
2014-07-11 10:57:28 +02:00
2014-08-07 12:12:54 +02:00
2014-07-02 17:04:14 +02:00
2013-01-19 10:59:44 +01:00
2014-08-07 12:14:27 +02:00
2014-01-22 09:54:55 +01:00
2013-07-16 15:43:36 +02:00
2014-06-23 12:07:41 +02:00
2013-01-19 10:59:44 +01:00
2014-07-02 16:31:22 +02:00
2014-07-02 16:31:22 +02:00
2014-08-07 12:40:44 +02:00
2014-08-07 12:20:57 +02:00
2013-07-02 12:08:07 +02:00
2011-07-06 15:22:00 +02:00
2013-09-03 15:15:51 +02:00