A new characterization of the sporadic simple groups