git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2c59df
)
Fix ordering of games in category page, thanks to @szeraax
author
Christian Weiske
<cweiske@cweiske.de>
Mon, 25 Nov 2019 05:15:08 +0000
(06:15 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Mon, 25 Nov 2019 05:15:08 +0000
(06:15 +0100)
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index c1d3e6da6db07d6c586be0f650b74a9c93fddc4d..2c7aee6279a384b60760176f5f4b982c2f08e825 100755
(executable)
--- a/
bin/import-game-data.php
+++ b/
bin/import-game-data.php
@@
-174,7
+174,7
@@
function buildDiscoverCategory($name, $games)
usort(
$games,
function ($gameA, $gameB) {
usort(
$games,
function ($gameA, $gameB) {
- return strcmp($game
B->title, $gameA
->title);
+ return strcmp($game
A->title, $gameB
->title);
}
);
$chunks = array_chunk($games, 4);
}
);
$chunks = array_chunk($games, 4);