fix #5714 - order Profile properties by Category and then ViewOrder

This commit is contained in:
sbwalker
2025-10-19 13:43:27 -04:00
parent 2be11b52c3
commit d837cd8af5

View File

@ -60,7 +60,7 @@ namespace Oqtane.Services
public async Task<List<Profile>> GetProfilesAsync(int siteId)
{
List<Profile> profiles = await GetJsonAsync<List<Profile>>($"{Apiurl}?siteid={siteId}");
return profiles.OrderBy(item => item.ViewOrder).ToList();
return profiles.OrderBy(item => item.Category).ThenBy(item => item.ViewOrder).ToList();
}
public async Task<Profile> GetProfileAsync(int profileId)