Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIP RENATER
switch-wayf
Commits
787546b8
Commit
787546b8
authored
Aug 21, 2014
by
haemmer
Browse files
Added fix for #3108
parent
efa150b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.php
View file @
787546b8
...
...
@@ -959,14 +959,14 @@ function sortUsingTypeIndexAndName($a, $b){
global
$language
;
if
(
$a
[
'Type'
]
!=
$b
[
'Type'
]){
return
strcmp
(
$a
[
'Type'
],
$b
[
'Type'
]);
return
strc
asec
mp
(
$a
[
'Type'
],
$b
[
'Type'
]);
}
elseif
(
isset
(
$a
[
'Index'
])
&&
isset
(
$b
[
'Index'
])
&&
$a
[
'Index'
]
!=
$b
[
'Index'
]){
return
strcmp
(
$a
[
'Index'
],
$b
[
'Index'
]);
return
strc
asec
mp
(
$a
[
'Index'
],
$b
[
'Index'
]);
}
else
{
// Sort using locale names
$localNameB
=
(
isset
(
$a
[
$language
][
'Name'
]))
?
$a
[
$language
][
'Name'
]
:
$a
[
'Name'
];
$localNameA
=
(
isset
(
$b
[
$language
][
'Name'
]))
?
$b
[
$language
][
'Name'
]
:
$b
[
'Name'
];
return
strcmp
(
$localNameB
,
$localNameA
);
return
strc
asec
mp
(
$localNameB
,
$localNameA
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment