[Fixes #7192] Orchard.Tags - Manage Tags Admin Page Not Alpha Sorted (#7198)

This commit is contained in:
Matthew Harris
2016-10-01 16:14:36 +01:00
committed by Sipke Schoorstra
parent 37e8696fe0
commit bd195cbb04

View File

@@ -39,7 +39,7 @@ namespace Orchard.Tags.Services {
public Localizer T { get; set; }
public IEnumerable<TagRecord> GetTags() {
return _tagRepository.Table.ToList();
return _tagRepository.Table.OrderBy(x => x.TagName).ToList();
}
public IEnumerable<TagRecord> GetTagsByNameSnippet(string snippet, int maxCount = 10) {