public int indexOf(ROW_OBJECT t) {
		if (isSorted()) {
			Comparator<ROW_OBJECT> comparator = sortContext.getComparator();
			return Collections.binarySearch(data, t, comparator);
		}

		// brute force
		for (int i = 0; i < data.size(); i++) {
			ROW_OBJECT item = data.get(i);
			if (t.equals(item)) {
				return i;
			}
		}
		return -1;
	}
Uses the current sort to perform a fast lookup of the given item in the given list when 
sorted; a brute-force lookup when not sorted
@param t the item
@return the index
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/TableData.java