I tried to run this code to sort an array and got this error
| x sortedX |
x := #('bb' 10 'aa' 2 'cc' 3 5).
sortedX := x asSortedCollection: [:y :z |
(y class = z class)
ifTrue: [y < z]
ifFalse: [y class < z class]
].
Transcript show: sortedX; cr.
Expected to get #(2 3 5 10 ‘aa’ ‘bb’ ‘cc’), but got error: ByteString Class(Object)>>DoesNotUnderstand
Here is a version that doesn't depend on classes