Sort domains (Culture and Hostnames) (#13797)

* Add sort order to IDomain, UmbracoDomain and DomainDto

* Add migration to create domain sort order column

* Add Sort method to domain service

* Set sort order when persisting new domain and order results

* Add multiple and block style support to umb-button-group

* Allow sorting domains in back-office, improve UI and rewrite PostSaveLanguageAndDomains for correctly sorting domains

* Ensure routing and cache keeps the domain sort order

* Update test to assert correct domain order

* Move migration to target 11.3 and cleanup plan

* Fix formatting/styling and make SelectDomains private

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

---------

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
This commit is contained in:
Ronald Barendse
2023-02-14 10:35:45 +01:00
committed by GitHub
parent 7348171c01
commit 45036f54dd
25 changed files with 858 additions and 690 deletions

View File

@@ -31,7 +31,7 @@ public class DomainCache : IDomainCache
list = list.Where(x => x.IsWildcard == false);
}
return list;
return list.OrderBy(x => x.SortOrder);
}
/// <inheritdoc />
@@ -46,7 +46,7 @@ public class DomainCache : IDomainCache
list = list.Where(x => x.IsWildcard == false);
}
return list;
return list.OrderBy(x => x.SortOrder);
}
/// <inheritdoc />