extra Sort before DistinctBy