[sldev] LLScrollListCtrl::addItem( item, ADD_SORTED ) resets sorting!

Dale Glass dale at daleglass.net
Sat Jan 27 09:06:49 PST 2007


I'm not completely sure this is a bug, as it looks quite intentional, so I 
thought I'd ask here:

LLScrollListCtrl::addItem has an add position argument, which can be 
ADD_SORTED. This appears to add the new entry in such a way that the 
resulting list is sorted.

But for some bizarre reason using ADD_SORTED resets sorting to be by the first 
column, in ascending order. Is this really intentional? It seems to make it a 
lot less useful, and the side effect is quite inexpected.

See starting from line 607 here:
http://opensecondlife.org:8180/source/xref/linden/indra/llui/llscrolllistctrl.cpp#596

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070127/91eabbb0/attachment.pgp


More information about the SLDev mailing list