,
{0, 1, 3 ...} //0 reprssents the first object in both lists and so on
, compareTo 2 , ProtocolList
@Override
public int compareTo(Integer o1, Integer o2) {
}
, , , , ,
List<Sensor> orderedSensorList = new ArrayList<>();
for(int i=0; i< indexesList.size(); i++) {
orderedSensorList.add(sensorList.get(idexesList.get(i));
}