[TYPO3-core] RFC #9606: Bug: alternativeSortingField does not work for other languages

Stefan Sprenger stefan.sprenger at dkd.de
Tue Aug 10 18:05:23 CEST 2010


Hi Bernhard,

it seems, that I didn't know usort() good enough ;-)

> There are two things which bother me:
> 
> 1. Why do you use a static method in this case. It also works with a normal object method (see attached diff).
> 2. Why all the logic in the comparison function. See the PHP manual on strcoll - it reaturns -1, +1, 0 anyways, so no need for the "if" construct.
> http://de.php.net/manual/en/function.strcoll.php

By following the example of usort() on http://de.php.net/manual/de/function.usort.php I thought that it only works with static methods and -1,1,0 as results of the compare function.
Thanks for your improvement!

> BTW: Thanks for showing the usage of "strcoll". I didn't know this php method.


You're welcome :-)


Best regards

Stefan
--

Stefan Sprenger

d.k.d Internet Service GmbH
Kaiserstraße 73
60329 Frankfurt/Main

fon:  +49 (0)69 - 2475 218 - 0
fax:  +49 (0)69 - 2475 218 - 99
mail: stefan.sprenger at dkd.de
web: http://www.dkd.de

Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer: Olivier Dobberkau, Søren Schaffstein, Götz Wegenast

Aktuelle Projekte:
https://www.domizilspiel.at  –  Launch Spieleplattform (TYPO3)
http://www.lauer-fischer.de  –  Relaunch Website (TYPO3)
http://www.mmk-frankfurt.de  –  Relaunch Website (TYPO3)

Karriere bei dkd:
Jetzt als TYPO3 Senior Entwickler bewerben: http://www.dkd.de/de/jobs/typo3-entwickler/



More information about the TYPO3-team-core mailing list