Oracle interview question

sort a collection with limited class options.