Skip to content

A free, self-hostable news aggregator…

Fix feed sort order (#3466)

Alexis Degrugillier4313c09e6805
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;
}