In any action in which order of priorities could be determined under scire facias proceedings, such orders of priorities may be determined by declaratory judgment proceedings.