Problem/Motivation

The Paragraph types on the listing page, /admin/structure/paragraphs_type, are ordered by machine name and not label.

Steps to reproduce

Create a couple of paragraphs and change the name after creation to sit after the previous one. See that the order is not obvious

Proposed resolution

Order by label not machine name.

Comments

oliveyrc created an issue.

gurkawal’s picture

Hi @oliveyrc I tested this issue but I was not able to reproduce it.

Environment tested:
- Drupal: 11.2
- Paragraphs module: 8.x-1.21
- PHP: 8.3

I created multiple paragraph types and updated the labels so that the label order and machine name order would be different. After that, I checked the paragraph types listing page at `/admin/structure/paragraphs_type`.

In my testing, the paragraph types were displayed according to the label order, not the machine name order.
Test data used:

- Label: Test C
Machine name: aaa_test_c

- Label: Test A
Machine name: bbb_test_a

- Label: Test B
Machine name: ccc_test_b

If the listing was ordered by machine name, the expected order would be:

Test C
Test A
Test B

However, on the paragraph types listing page, the items were displayed in label order:

Test A
Test B
Test C

So, based on my testing, the listing already seems to be ordered by label.