pub fn sort_dedup<I: Iterator, R: Seq<I::Item>>(iter: I, keep: Keep) -> Rwhere I::Item: Ord,
Sort and dedup an interator I into a collection R.
I
R
keep determines whether to keep the first or the last occurrence in case of duplicates
keep