Filter all loci that are also included in another matrix table

How can i filter all rows to only include loci that are also in another mt (or lis of loci)? I tried the intersect method, but with no success.

Thanks

semi_join_rows:

mt = mt.semi_join_rows(mt2.rows())

thanks

Will it be sorted in the same order automatically?

The order of mt should be maintained.