Better sorting by time, when template applied