software/test/performance/src/gov/nih/nci/evs/browser/utils/SortUtils.java
/**
	 * Performs quick sort of a Vector by a specified sort option.
	 *
	 * @param v an instance of Vector
	 * @param sort_option, an integer; 1, if sort by name; 2: if sort by code
	 */
Performs quick sort of a Vector by a specified sort option.

@param v an instance of Vector
@param sort_option, an integer; 1, if sort by name; 2: if sort by code
Performs quick sort of a Vector by a specified sort option . @param v an instance of Vector @param sort_option an integer ; 1 if sort by name ; 2 : if sort by code
public static Vector quickSort(Vector v, int sort_option)
   {
       if (v == null) return v;
       if (v.size() <= 1) return v;
       try {
		   Collections.sort((List) v, new SortComparator(sort_option));
		   return v;
       } catch (Exception ex) {
		   ex.printStackTrace();
	   }
       return null;
   }
public static Vector quickSort ( Vector v , int sort_option ) { if ( v == null ) return v ; if ( v . size ( ) <= 1 ) return v ; try { Collections . sort ( ( List ) v , new SortComparator ( sort_option ) ) ; return v ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } return null ; }
Performs quick sort of a Vector by a specified sort option.
Performs quick sort of a Vector by a specified sort option .