organize file paths in c#
<p>is there a way if organizing paths depending on which one is more towards the root. For example if I have the paths:</p>

<pre><code>"C:\someFolder\program files\b"
"C:\someFolder\X"
"C:\Z"
"C:\someFolder\program files\a"
</code></pre>

<p>then I will like to sort them as:</p>

<pre><code>"C:\Z"
"C:\someFolder\X"
"C:\someFolder\program files\a"
"C:\someFolder\program files\b"
</code></pre>

<p>I am actually trying to create a tree view and that's why I want to sort them like that.  </p>
