Sort tags alphabetically (#2367)

This commit is contained in:
Thomas Bruederli 2013-10-21 14:06:05 +02:00
parent 8b3a9262e6
commit 482fa43f12

View file

@ -605,6 +605,10 @@ class tasklist extends rcube_plugin
$rec['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']);
}
if (!is_array($rec['tags']))
$rec['tags'] = (array)$rec['tags'];
sort($rec['tags'], SORT_LOCALE_STRING);
if (in_array($rec['id'], $this->collapsed_tasks))
$rec['collapsed'] = true;