// "Replace with 'Comparator' chain" "true-preview"

import java.util.List;

public class Main {
  static class Part implements Comparable<Part> {
  }

  static class Obj {
    double first;
    Part second;
  }

  void sort(List<Obj> objs) {
    objs.sort((o1, o2) -> {<caret>
      int res = Double.compare(o1.first, o2.first);
      if(res == 0) res = o1.second.compareTo(o2.second);
      return res;
    });
  }
}
