Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
Description
Resolves #19562
SORT_COMPARE_FUNC
from the core library in AbstractMenuService and replacing sortItems function.sortItems
function and making it arrow function.Checklist
How to test it?
I tested this issue in lepton.
This is an example menu item objects to use.
```ts { id: 'DifferentName3', order: 103, textTemplate: { text: 'DifferentName3', }, action: () => {}, visible: () => true, }, { id: 'DifferentName1', order: 103, textTemplate: { text: 'DifferentName1', }, action: () => {}, visible: () => true, }, { id: 'DifferentName2', order: 103, textTemplate: { text: 'DifferentName2', }, action: () => {}, visible: () => true, }, ```You can also view this images to see sorting is working correctly, based with id fields.
![image](https://github.com/abpframework/abp/assets/81169996/9e6a8df3-d4ff-4e22-acaf-2db7d5f4f7b7) ![image](https://github.com/abpframework/abp/assets/81169996/b1185509-3382-4d2d-8256-19ab313522c1)