I would prefer using `lists:keysort` here for same effect.