Add sorting by title for pages with groups lists

Created on 26 May 2023, over 1 year ago
Updated 7 June 2023, over 1 year ago

Problem/Motivation

We have two views pages with groups: /all-groups and /user/{uid}/groups. On these pages groups are sorting by created field.

But there can be a case when groups can be created with the same created data (f.e, by migration or importing from external source). Then users can see duplicated (repeated) groups on mentioned views pages.

Steps to reproduce

- Install OS from scratch;
- Execute the code (drush php:eval):

foreach (range(1, 20) as $number) {
  Drupal::entityTypeManager()->getStorage('group')
    ->create([
      'type' => 'flexible_group',
      'created' => '999999999',
      'uid' => 1,
      'label' => 'Example flexible group #' . $number,
    ])
    ->save();
}

Proposed resolution

- Add additional sorting by group title

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Feature request
Status

Fixed

Version

11.9

Component

Code (back-end)

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024