we should use your variant, although, we should get rid of lambdas, everywhere it appears, instead of it we need use ```itemgetter``` from package ```operator```