Assign MSTs to m-lines in canonical order. fixes issue 22