﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
15652	Tags with Accents are Incorrectly Sorted in Cloud	CatherineBr		"By accents, I mean letters like ""é"", ""ü"", ""ç"", ""î"", etc.

Currently, in a tag cloud, the word ""égypte"" gets sorted AFTER the word ""zimbabwe"". This is incorrect alphabetical sorting. A correct sorting would consider ""é"" as equivalent to ""e"", and place ""égypte"" BEFORE the word ""zimbabwe"".

The problem stems from this line in CATEGORY-TEMPLATE.PHP :

uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') );

As a temporary solution, I am using this code :

function replace_accents($str) {
  $str = htmlentities($str, ENT_COMPAT, 'UTF-8');
  $str = preg_replace('/&([a-zA-Z])(uml|acute|grave|circ|tilde);/', '$1', $str);
  return html_entity_decode($str);
}
uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') );"	enhancement	closed	normal		I18N	3.0.2	normal	duplicate		
