Re: [patch #3596] Sort directories before files in "ls"
From:
Alfred M\. Szmidt
Subject:
Re: [patch #3596] Sort directories before files in "ls"
Date:
Thu, 22 Dec 2005 21:43:48 +0100
> EVIL. You are calling qsort twice for every element (once to
> put directories first, then twice again on the subsets). This
> is twice as slow as just writing a proper sort function that
> does everything all in one comparison, so that you only call
> qsort once.
I agree with Eric.