diff options
| author | 2021-02-19 18:33:33 -0500 | |
|---|---|---|
| committer | 2021-02-20 00:33:33 +0100 | |
| commit | 4313c09e68056fe0c4cf9ddb9dc8d9ad5c92f1d9 (patch) | |
| tree | f6c1f8b0a07c16cb3b11689de6bddb00ce0a9bf1 /app/Models/Category.php | |
| parent | 9682fcfebbeeb4e02174cbae061b003d1017f6ab (diff) | |
Fix feed sort order (#3466)
Before, the feeds in the list weren't properly ordered. Uppercase
values were before lowercase values.
Now, the feed order is forced to ignore the case.
See #3228
Diffstat (limited to 'app/Models/Category.php')
| -rw-r--r-- | app/Models/Category.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php index cee137138..499f95d97 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -62,6 +62,10 @@ class FreshRSS_Category extends Minz_Model { } } + usort($this->feeds, function ($a, $b) { + return strnatcasecmp($a->name(), $b->name()); + }); + return $this->feeds; } |
