Sort pre and post in TPN firing rule