Added some sorting capability to the SimilarityInstance code.  This is used in the relevance engine to set the
version number.