Rows presented in wrong order

Created on 7 August 2022, over 2 years ago
Updated 1 March 2025, about 2 months ago

Problem/Motivation

When there are more than 10 rows in a table, the rows are reproduced in the wrong order.

Steps to reproduce

Create a table field on an entity. Add 11 rows of data to the field. Observe that row 11 is presented as the third row.

Proposed resolution

Fix the ksort() that is causing row_10 to be placed between row_1 and row_2 by adding a SORT_NUMERIC flag. See line 2439 of tablefield.module. (SORT_NATURAL also works, btw).

Remaining tasks

Generate the patch.

User interface changes

None.

API changes

None

Data model changes

None

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gbirch

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024