Greg Stein wrote:

> On Tue, May 29, 2012 at 5:01 PM, Dustin Lang <d...@astro.princeton.edu> 
> wrote:
>> ...
>>>  You can use svn_sort_compare_items_lexically because entries are single
>>>  path components that do not contain slashes. In which case
>>>  svn_sort_compare_items_as_paths produces the same result but is less
>>>  efficient.
>> 
>>  The paths are like:
>> 
>>   trunk/documents/papers/archetypes/paper_plots/103lg.ps
>> 
>>  But I still believe you are right that lexical sort will work fine and is
>>  simpler than svn_sort_compare_items_as_paths.
> 
> Right. Everything up to the final '/' will match precisely, so only
> the children are being compared.
> 
> More specifically, you are NOT sorting paths like:
> 
>   some/path
>   some/path/more
>   some/pathmore
> 
> The sorting there is quite a bit different.

If you're using _lexically on these paths, please explain this in a comment, 
otherwise this will be confusing to readers.

- Julian

Reply via email to