|
I will stop to be silly after this:
[PHP]# a mixed object list
list1 = [2, 1.99, [1, 2], (1, 2), {'c': 1, 'b': 2}, "bush"]
# sort/compare order seems to be numerics (float or integer), dictionary, list, string, tuple
print sorted(list1) # [1.99, 2, {'c': 1, 'b': 2}, [1, 2], 'bush', (1, 2)][/PHP]
__________________
I looked it up on the Intergnats!
|