TList sorting problem...

BlitzMax Forums/BlitzMax Programming/TList sorting problem...

Hi,

There seems to be a bug with sorting raw integers in lists.
'
' works with strings
List:TList = CreateList()
List.AddLast("hi")
List.AddLast("i'm")
List.AddLast("ok")
List.Sort()

'
' but not with integers
List:TList = CreateList()
List.AddLast(13)
List.AddLast(10)
List.AddLast(11)
List.Sort()
It seems that the references to integers (and I assume other simple types, ie. float, double, byte etc), are lost during the sorting process.

[edit] Nope, the other types refuse to be converted to an object, so it looks like it only applies to integers.