Forum->Flatnux->xmldb "ORDER BY" fix
  
Welcome Unknown Register Help383 Users

User Message


johndorazio

0 Level 0 10

levellevellevellevellevellevellevellevellevellevel
profile mail home
Wednesday 15 June 2011 - 08:13

xmldb "ORDER BY" fix:
Al momento l'istruzione "ORDER BY" effettua un sort case-sensitive. Credo che il comportamento aspettato sia un sort case-insensitive.

Il fix è molto semplice:

Nel file "include/xmldb.php", nella funzione "xmldb_array_sort_by_key()", basta modificare questa riga:
	ksort($ret);

in questo modo:
  uksort($ret, "strnatcasecmp");


Alessandro perché non crei un git repository tipo su github? Faciliterebbe molto una collaborazione per i vari bugfix... Flatnux potrebbe diventare un luogo migliore ;)

____________________________
"The whole of science is nothing more than a refinement of everyday thinking." (Albert Einstein)

 [1]