diff --git a/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs b/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs index 6e0774a3..109e2a5d 100644 --- a/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs +++ b/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs @@ -183,7 +183,7 @@ namespace AyaNova.Api.Controllers if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.CustomerNotifySubscription)) return StatusCode(403, new ApiNotAuthorizedResponse()); - var subs = await ct.CustomerNotifySubscription.AsNoTracking().ToListAsync(); + var subs = await ct.CustomerNotifySubscription.AsNoTracking().OrderBy(z=>z.Id).ToListAsync(); List ret = new List(); foreach (var s in subs) diff --git a/server/AyaNova/Controllers/NotifySubscriptionController.cs b/server/AyaNova/Controllers/NotifySubscriptionController.cs index b1f4580d..3c959ec9 100644 --- a/server/AyaNova/Controllers/NotifySubscriptionController.cs +++ b/server/AyaNova/Controllers/NotifySubscriptionController.cs @@ -164,7 +164,7 @@ namespace AyaNova.Api.Controllers //and checking of rights long UserId = UserIdFromContext.Id(HttpContext.Items); - var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.UserId == UserId).ToListAsync(); + var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.UserId == UserId).OrderBy(z=>z.Id).ToListAsync(); List ret = new List(); foreach (var s in subs)