🗃️ Realm popularity field & sorting communities according to it
This commit is contained in:
@ -15,7 +15,7 @@ func ListCommunityRealm() ([]models.Realm, error) {
|
||||
var realms []models.Realm
|
||||
if err := database.C.Where(&models.Realm{
|
||||
IsCommunity: true,
|
||||
}).Find(&realms).Error; err != nil {
|
||||
}).Order("popularity DESC").Find(&realms).Error; err != nil {
|
||||
return realms, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user