[TYPO3-core] RFC: #16116: Configuration module is hard to find the array key because it's not sorted

Steffen Kamper info at sk-typo3.de
Sun Oct 24 22:23:41 CEST 2010


Hi,

Steffen Gebert schrieb:
>> Type: Bugfix / Feature
>>
>> BT Reference: http://bugs.typo3.org/view.php?id=16116
>>
>> Branches: trunk
>>
>> When you explore array in configuration module it's hard to find the
>> array key you are looking for because display order is the init order.
>>
>> Solution:
>> sort the arrays recursive.
>> I introduced a new array function in t3lib_div called ksortRecursive, as
>> this might be useful in many other places.
> 
> Hi Steffen,
> 
> +1 by reading and testing
> 
> I've attached a version 2, which improves the PHPDoc and allows to 
> pass-thru the second parameter $sort_order to ksort().
>

i'm fine with 2nd param.

> Unfortunately PHP has no native sort function, which sorts in the IMHO 
> more "human" order, but always puts all uppercase words first, then all 
> lowercase words.
> 

yes, i also noticed that.
Did you tested it with SORT_LOCALE_STRING?. There is another patch that 
introduce locale for BE, so maybe that is useful.

vg Steffen



More information about the TYPO3-team-core mailing list