Fix sorting algorithm of event powerup