a sorted set, with user-supplied sorting.