Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 430b23d

Browse files
committed
sort by senority
1 parent bb99832 commit 430b23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convention2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public int compare(cow arg0, cow arg1) {
4747
if(time.get(cows_eaten).x >= tc.x+tc.y || theline.contains(time.get(cows_eaten))) { // If after the current cow is finsihed then all cows after it we don't have to worry about
4848
break;
4949
}else {
50-
5150
theline.add(time.get(cows_eaten));
5251
}
5352
}
53+
theline.sort(cowcompare);
5454
nextcow.x = tc.x + tc.y; // When cow finishes
5555

5656
}

0 commit comments

Comments
 (0)