new key functions type and sort. Integration tests missing for sort
new function ttl