diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-10-01 17:48:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-10-01 17:48:30 -0300 |
commit | b3bbae81b7b2c8132a4e43cfa49b81fae58dd8e5 (patch) | |
tree | 28f70b6caff40a0b104177f893630c796e540e77 /src/SemanticScuttle/Service/Bookmark2Tag.php | |
parent | 9a5f69a671a0ad841d9914293efbdcef0e1b75bf (diff) | |
parent | ea04385bc16de6b7b65aab75c5c33cfe2d71ea84 (diff) | |
download | semanticscuttle-0.99.0.tar.gz semanticscuttle-0.99.0.tar.bz2 |
Merge remote-tracking branch 'querwurzelt/master' into mergev0.99.0
Diffstat (limited to 'src/SemanticScuttle/Service/Bookmark2Tag.php')
-rw-r--r-- | src/SemanticScuttle/Service/Bookmark2Tag.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark2Tag.php b/src/SemanticScuttle/Service/Bookmark2Tag.php index a01b5d7..2579022 100644 --- a/src/SemanticScuttle/Service/Bookmark2Tag.php +++ b/src/SemanticScuttle/Service/Bookmark2Tag.php @@ -691,14 +691,12 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService } if ($sortOrder == 'alphabet_asc') { - usort($output, create_function('$a,$b','return strcasecmp(utf8_deaccent($a["tag"]), utf8_deaccent($b["tag"]));')); + usort($output, "cmp"); } return $output; } - - /** * Deletes all tags in bookmarks2tags * @@ -711,4 +709,10 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService } } + +function cmp($a,$b) +{ + return strcasecmp(utf8_deaccent($a["tag"]), utf8_deaccent($b["tag"])); +} + ?> |