[TYPO3-dam-devel] RFC #15005: browsetree -> folders: Use natcasesort for folder sorting

Dan Osipov dosipov at phillyburbs.com
Sat Jan 22 19:09:06 CET 2011


+1 by reading.

Please only commit to trunk, as this is a functionality change, that may 
confuse 1.1 users. Let's leave 1.1 with default sorting.

On 1/21/11 12:51 PM, Lorenz Ulrich wrote:
> Hi everyone!
>
> This is an SVN patch request.
>
> Branches: 1.1 + trunk
>
> Type: no-brainer
>
> BT reference: http://bugs.typo3.org/view.php?id=15005
>
> Problem:
> It would be nice if the default sorting of folders in tree view would be
> alphabetically sorted and case insensitive.
>
> Solution:
> That could be easily achived by using natcasesort() instead of sort() in
> components/class.tx_dam_selectionFolder.php, see attached patch ...
> maybe special characters still need to be checked. .
>
> Comments:
> It would be nice to have a human readable sorting for files, too, but
> this is a little bit more complicated. So we can to that in a new RFC.
>
> This tiny patch was made by Christian Kuhn.
>
>
> +1 by testing. Since only one review is needed, I will commit it in 24
> hours if there are no objections.
>
>
> Best regards,
>
>
> Lorenz

-- 
Dan Osipov
http://danosipov.com/blog


More information about the TYPO3-team-dam mailing list