sorting for nested items works now

This commit is contained in:
2021-01-20 15:54:12 +01:00
parent e653c246ed
commit 8628d38689
9 changed files with 309 additions and 272 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ namespace zero.Web.Controllers
public CountriesController(ICountriesCollection collection) : base(collection)
{
DefaultQuery = q => q.OrderByDescending(x => x.IsPreferred).ThenBy(x => x.Name);
PreviewTransform = (item, model) => model.Icon = "flag flag-" + item.Code.ToLowerInvariant();
PreviewTransform = (item, model) => model.Icon = "flag-" + item.Code.ToLowerInvariant();
}
}
}