cache keys/values are sorted (with configurable sort keys)