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

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