list(..) is unnecessary because `sorted` returns list