Skip to content

Commit ed4999d

Browse files
committed
sort parallel results before concatenating
1 parent a8178cb commit ed4999d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sliderule/icesat2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ def __parallelize(max_workers, block, function, parm, resources, *args):
506506

507507
# Return Results
508508
if len(results) > 0:
509-
return geopandas.pd.concat(results, sort=True)
509+
results.sort(key=lambda result: result.iloc[0]['delta_time'])
510+
return geopandas.pd.concat(results)
510511
else:
511512
return __emptyframe()
512513

0 commit comments

Comments
 (0)