Generic sorted set commands.