Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change order method of Sortedlist object

Status
Not open for further replies.

Kai77

Programmer
Jun 7, 2004
77
NL
Hi,

Is it possible to change the method how the sortedlist object sorts it's entries by default?

If I were to have this already in my sortedlist:

"1_1_1", "value X"
"2_1_1", "value Y"

And I would add the following key/value combo:
"11_1_1", "value Z"

I would like it to come after "2_1_1", "value Y" instead of before, which is happening now.

Anyway I can change this behaviour?
 
In cases like this its usuallt best to include leading zeroes in your sorted string.

So 2_1_1 becomes 02_01_01 1_1_1 becomes 01_01_01.
Then when you sort the list you will get the desired results



Sweep
...if it works dont mess with it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top