abpframework / abp

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.
https://abp.io
GNU Lesser General Public License v3.0
12.27k stars 3.32k forks source link

Angular: Sort user menu items by base sorting function at `AbstractMenuService<T>` #19577

Closed yusuf-cirak closed 2 weeks ago

yusuf-cirak commented 2 weeks ago

Description

Resolves #19562

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)