Sort parties by time