We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c31b58 commit 1728d47Copy full SHA for 1728d47
Eco.EM.Framework/API/Requests.cs
@@ -42,7 +42,7 @@ public string GetPrices([FromQuery]bool includeOutOfStock = false)
42
string noResult = "No Items Found";
43
if (BasePlugin.Obj.Config.EnableWebAPI)
44
{
45
- var result = ShopUtils.GetAllItems(includeOutOfStock).OrderBy(o => o.StoreName);
+ var result = ShopUtils.GetAllItems(includeOutOfStock);
46
if (result is null)
47
return noResult;
48
else
Eco.EM.Framework/Utils/ShopUtils.cs
@@ -197,7 +197,10 @@ public static List<OfferedItem> GetAllItems(bool includeOutOfStock = false)
197
}
198
199
if (Items.Count > 0)
200
+ {
201
+ Items.OrderBy(o => o.StoreName);
202
return Items;
203
+ }
204
205
return null;
206
0 commit comments