Trip ticket sorting example