Bugfixes for sortKey and signature

Fix a small copy paste bug
Bugfix for indexed and indexedSync
Merge pull request #1 from kaischroeder/master

Bugfixes for sortKey, signature, indexed