NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Sort out array elements sort order in debugger


Joined: 07 Jun 2011
Posts: 3
Reply with quote
Hello,

When viewing the contents of an array with more than 9 elements in the debugger, the items are shown in the incorrect (numerical) order. The current sort order for 13 elements:
0
1
10
11
12
2
3
4
5
6
7
8
9

This makes debugging array processing quite a headache and I couldn't imagine a situation where the current order is useful (unless working with an associative or mixed-key array).

If an array only has numerical keys, would it be possible to sort them in the correct order?

Cheers
Jitse
View user's profileFind all posts by djitszSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
if you click on "Name" column in the header, you'll see that it has 3 states: ordered in direct order, in reverse order, and unordered.
If you want to see the indices in original order they were added, just make the Name column show no triangle and you'll get the list unordered.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Sort out array elements sort order in debugger
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic