SortArray::foo() documentation should be explicit about how they sort

Created on 10 June 2024, 6 months ago

Problem/Motivation

Various parts of the docs here need to be more explicit.

   * Sorts a structured array by the 'weight' element.

   * Sorts a structured array by '#weight' property.

This assumes the reader is familiar with how Drupal's 'weights' concept work. It should say the sort is numeric & ascending.

   * Sorts a structured array by 'title' key (no # prefix).

   * Sorts a structured array by '#title' property.

This should say it's a string sort, using natural case insensitive sorting

sortByKeyString and sortByKeyInt should similarly document what they do.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Documentationย  โ†’

Last updated 1 day ago

No maintainer
Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024