 : pandas.DataFrame
        Sorted dataframe
    &#34;&#34;&#34;
    #Sort columns for better processing later
    df_sorted = df.sort_values(sort_cols)
    df_sorted.reset_index(inplace=True, drop=True)
    if remove_nans:
        df_sorted = df_sorted[pd.notna(df_sorted[&#34;LITHOLOGY&#34;])]
    return df_sorted</code></pre>
</details>
</section>
<section>
</section>
<section>
</section>
<section>
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="w4h.classify.depth_define"><code