Fix sort by time