The hearing in all the cases arising under this Division 2 shall have precedence over all other cases in any court, where they are brought, except criminal cases, or other cases in which the public is a moving party.