*** ezpublish5_community_project-2012.9-gpl-full/app/ezpublish_legacy/kernel/content/ezcontentfunctioncollection.php	2012-10-08 20:47:22.000000000 +0200
--- dev-lxc.lxc/var/www/ceonizme/app/ezpublish_legacy/kernel/content/ezcontentfunctioncollection.php	2012-10-25 14:29:05.000000000 +0200
***************
*** 947,953 ****
                      if ( $sortBy[0] == 'attribute' )
                      {
                          // if sort_by is 'attribute' we should add ezcontentobject_name to "FromSQL" and link to ezcontentobject
!                         $sortingInfo['attributeFromSQL']  .= ' INNER JOIN ezcontentobject_name ON (ezcontentobject_name.contentobject_id = ezcontentobject.id)';
                          $sqlTarget = 'DISTINCT ezcontentobject_tree.node_id, '.$sqlKeyword;
                      }
                      else // for unique declaration
--- 947,953 ----
                      if ( $sortBy[0] == 'attribute' )
                      {
                          // if sort_by is 'attribute' we should add ezcontentobject_name to "FromSQL" and link to ezcontentobject
!                         $sortingInfo['attributeFromSQL']  = ' INNER JOIN ezcontentobject_name ON (ezcontentobject_name.contentobject_id = ezcontentobject.id)'.$sortingInfo['attributeFromSQL'];
                          $sqlTarget = 'DISTINCT ezcontentobject_tree.node_id, '.$sqlKeyword;
                      }
                      else // for unique declaration
