fix video template; sort documents by date