From 022ed9912a6b6861413e6387e193f50826942f5c Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 3 Jan 2021 14:15:15 -0500 Subject: Fix share option sort (#3331) Before, share options were displayed in the order defined in the configuration file. So the order reflected the share history and was not really usable. Now, share options are displayed in alphabetical order which makes much more sense. --- app/Models/Share.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Models/Share.php') diff --git a/app/Models/Share.php b/app/Models/Share.php index 1fc3c493e..218781dcc 100644 --- a/app/Models/Share.php +++ b/app/Models/Share.php @@ -43,6 +43,10 @@ class FreshRSS_Share { $share_options['type'] = $share_type; self::register($share_options); } + + uasort(self::$list_sharing, function ($a, $b) { + return strcasecmp($a->name(), $b->name()); + }); } /** -- cgit v1.2.3