`sorted` call is unnecessary here