Change absolute route to relative route and change file name sorting to sorting order by time