public int compareTo(Object o) { return instance.getSchedulePriority() - ((instanceWrapper) o).instance.getSchedulePriority(); }