Closed Bug 213494 Opened 22 years ago Closed 14 years ago

Array elements displayed out of sequence when array is expanded

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alther, Assigned: rginda)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Arrays (including JavaArrays) with more than 10 elements do not display in sequence when the array is expanded in the Local Variables window. e.g. if I have an Array of 15 elements and I expand the Array in the Local Variables window to see each element, they are listed in the following order: 0, 1, 10, 11, 12, 13, 14, 15, 2, 3, 4, 5, 6, 7, 8, 9. They are being sorted alphabetically instead of numerically. Reproducible: Always Steps to Reproduce: 1. Open Venkman. 2. Open a URL/Page/Script which uses Arrays. 3. Make sure the Array contains at least 10 elements in order to see the problem. 4. Put a break point somewhere to view the contents of the Array. 5. Run the script. When the breakpoint is hit, examine the Array in the Local Variables window and expand it. Notice the elements are not in numerical sequence, but in alphabetical sequence. Actual Results: The contents of the Array are displayed in alphabetical sequence which is incorrect. Expected Results: Display the contents of the Array in numerical sequence. Currently using Venkman 0.9.77
Screen shot shows the Local Variables window with a JavaArray expanded showing the elements being displayed out of sequence.
Product: Core → Other Applications
Assignee: rginda → silver
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
The sorting function may seem a bit odd - it is - but it definately produces the most naturally sorted results. :) E.g.: 1foo1 1foo2 1foo10 1foo11 2foo1 2foo2 2foo10 2foo11 10foo1 10foo2 10foo10 10foo11 11foo1 11foo2 11foo10 11foo11
Attachment #220874 - Flags: review?(rginda)
Status: NEW → ASSIGNED
Attachment #220874 - Flags: review?(rginda) → review?(shaver)
Assignee: silver → rginda
Status: ASSIGNED → NEW
QA Contact: caillon → venkman
Attachment #220874 - Flags: review?(shaver)
Comment on attachment 220874 [details] [diff] [review] Sort using blocks Here's a 3.5yo patch, enjoy.
Attachment #220874 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 220874 [details] [diff] [review] Sort using blocks Great, thanks a lot! r=me :-)
Attachment #220874 - Flags: review?(gijskruitbosch+bugs) → review+
I finally pushed this to HG: 653:ab37d914e678
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: