Apply generic commands to sorted set keys.