Fixed the ordering of the ruptures in the event based calculator

See https://bugs.launchpad.net/oq-engine/+bug/1329674. The tests are running here: https://ci2.openquake.org/job/zdevel_oq-engine/403