Added missing semi-colons.
Experiment with object arrays.
Implement asorted for object arrays.