A new characterization of sporadic simple groups