SortIndex: as long as the Index superseeds the sort critereon its still a full match.
SortIndex: move the unlinking of the sort attributes after unlinking the sort itself
SortIndex: start implementing unittests for the different usecases.
Merge branch 'aql2' of github.com:triAGENS/ArangoDB into aql2