minor fix for sort keys only