temporal sorting added