Closed Bug 1060064 Opened 10 years ago Closed 10 years ago

TableWidget does not sort correctly for alphanumeric uniqueIds

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1062490

People

(Reporter: gl, Unassigned)

Details

Attachments

(1 file)

Example:
console.table([{a:5},{b:1},{c:1},{d:4},{e:5},{f:6},{g:7},{h:8},{i:9},{j:10},{k:11}])

In this situation, the uniqueId '(index)' are all strings of numbers, and the current TableWidget sort does not handle that.
This is hard to fix. Unless we implement addAll method, we have no idea of all of the rows as a whole. While adding a row one by one, we are never sure that the index is intended to be string or number.

In the sort method, I don't see a way to differentiate this and sort differently.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: