Clojure has a function [`sorted-set`](https://clojuredocs.org/clojure.core/sorted-set) which creates a `PersistentTreeSet` object. As the name implies, [`sorted-set`](https://clojuredocs.org/clojure.core/sorted-set) creates a sorted collection of unique objects.

When are sorted sets useful? When is it better to use [`sorted-set`](https://clojuredocs.org/clojure.core/sorted-set) than [`sort`](https://clojuredocs.org/clojure.core/sort) and [`distinct`](https://clojuredocs.org/clojure.core/distinct)?

```
=> (apply sorted-set [2 2 1 1 3 3])
#{1 2 3}
=> (sort (distinct [2 2 1 1 3 3]))
(1 2 3)

```