projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fa961e
)
order items alphabetically if weights are the same
author
Niko Bochan
<bochan@systopia.de>
Mon, 1 Dec 2014 10:22:50 +0000
(11:22 +0100)
committer
Niko Bochan
<bochan@systopia.de>
Mon, 1 Dec 2014 10:22:50 +0000
(11:22 +0100)
CRM/Utils/Sort.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Sort.php
b/CRM/Utils/Sort.php
index 8f56c9dc82e68cea004d280e252be815b54e22eb..36c61abd21ab8b87f364b1c03f09c7b60035fa0e 100644
(file)
--- a/
CRM/Utils/Sort.php
+++ b/
CRM/Utils/Sort.php
@@
-284,7
+284,9
@@
class CRM_Utils_Sort {
* @access public
*/
static function cmpFunc($a, $b) {
+ if($a['weight'] == $b['weight']) {
+ return strcmp($a['title'], $b['title']);
+ }
return ($a['weight'] <= $b['weight']) ? -1 : 1;
}
}
-