diff --git a/src/gentropy/datasource/gnomad/ld.py b/src/gentropy/datasource/gnomad/ld.py index 752a05abb..a19cbb06b 100644 --- a/src/gentropy/datasource/gnomad/ld.py +++ b/src/gentropy/datasource/gnomad/ld.py @@ -488,7 +488,9 @@ def get_locus_index( self.ld_index_raw_template.format(POP=major_population) ) - joined_index = liftover_ht.join(hail_index, how="inner").to_spark().sort("idx") + joined_index = ( + liftover_ht.join(hail_index, how="inner").order_by("idx").to_spark() + ) return joined_index