mcollina/seneca-shard-store — pull request #2 by nherment (2014-07-02 11:19:08+00:00)
Title: apply sort algorithm on aggregated data

Hi @mcollina,

I could not get the tests to pass locally, with my change or without. It's tested in a separate project. I still added the tests but I'm getting The following error:

```
➜ seneca-shard-store git:(master) ✗ npm test

> seneca-shard-store@0.0.6 test /Users/nherment/workspace/seneca-shard-store
> mocha test/

/Users/nherment/workspace/seneca-shard-store/test/shard.test.js:8
var shared = seneca.test.store.shared
^
TypeError: Cannot read property 'store' of undefined
at Object. (/Users/nherment/workspace/seneca-shard-store/test/shard.test.js:8:25)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/nherment/workspace/seneca-shard-store/node_modules/mocha/lib/mocha.js:172:27
at Array.forEach (native)
at Mocha.loadFiles (/Users/nherment/workspace/seneca-shard-store/node_modules/mocha/lib/mocha.js:169:14)
at Mocha.run (/Users/nherment/workspace/seneca-shard-store/node_modules/mocha/lib/mocha.js:356:31)
at Object. (/Users/nherment/workspace/seneca-shard-store/node_modules/mocha/bin/_mocha:359:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
```