distanceSort

format

SearchResults[] distanceSort(int indexType, SearchResults arg1[])

description

Takes an unordered array of SearchResults objects and sorts it according to distance. You can only sort based on one index type at a time. For example, you sort an array based on texture distance like this:

SearchResults sortedArray = distanceSort( Eve.TEXTURE, results[] );

parameters

indexType - the type of index (such as Eve.REGION) to which the distance applies

 

arg1 -the array of SearchResults to be sorted

returns

an array of SearchResults objects sorted in descending order of the distance specified in indexType

throws

The distanceSort() method does not throw any exceptions.