based on this answer I want to build the combined column dynamically
df_post['sort_column'] = df_post.apply(lambda r:str([r[col1],r[col2],r[col3]]), axis=1)
df_post = df_post.set_index('sort_column')
df_post = df_post.map_partitions(lambda x: x.sort_index())
I am not able to figure out a way to make this '[r[col1],r[col2],r[col3]]' dynamic based on a list of columns provided by config file.