private List<DBRecord> getParentChildRecords() throws IOException {
		Field[] keys =
			parentChildAdapter.getParentChildKeys(key, ParentChildDBAdapter.PARENT_ID_COL);
		List<DBRecord> list = new ArrayList<DBRecord>();
		Comparator<DBRecord> c = new ParentChildRecordComparator();
		for (int i = 0; i < keys.length; i++) {
			DBRecord rec = parentChildAdapter.getParentChildRecord(keys[i].getLongValue());
			int index = Collections.binarySearch(list, rec, c);
			if (index < 0) {
				index = -index - 1;
			}
			list.add(index, rec);
		}
		return list;
	}
Get sorted list based on child order column.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/ModuleDB.java