properly sorting if recent periods