fix #5714 - order Profile properties by Category and then ViewOrder
This commit is contained in:
@ -60,7 +60,7 @@ namespace Oqtane.Services
|
|||||||
public async Task<List<Profile>> GetProfilesAsync(int siteId)
|
public async Task<List<Profile>> GetProfilesAsync(int siteId)
|
||||||
{
|
{
|
||||||
List<Profile> profiles = await GetJsonAsync<List<Profile>>($"{Apiurl}?siteid={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)
|
public async Task<Profile> GetProfileAsync(int profileId)
|
||||||
|
|||||||
Reference in New Issue
Block a user