[FIX] check if the key is present in the result before sort result on it

check if the key is present in the result before sort result on it
There can be more than one key, so you must check all of them. You can use something like:
```
if all([x in res[x].keys() for x in getter]):
```