The lien for the assessment upon abutting property and railroad companies, for street or sidewalk paving, curbing, macadamizing, grading, or draining, shall have rank and priority of payment as provided by general law, such lien to date from the passage of the ordinance authorizing the execution of the work in such case.