Array sorting 101

BlitzMax Forums/BlitzMax Programming/Array sorting 101

The compare method jsp provided is correct otherwise, but when color=obj.color it should either return 0 or compare another field. Not that it matters much with sorting, but things like this can cause annoying bugs later on.