organize case class order