Implements a "sorted collisions" implementation, to fix problems with collisions firing multiple times and out of order. (Note: 03 is crashing elsewhere, so I reverted to O2).