Skip to content

Commit

Permalink
* fix bubblesort
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianTerhorst committed Apr 6, 2017
1 parent c0c42b8 commit c2db42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/io/fabianterhorst/isometric/Shape.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Path[] orderedPaths() {
swapped = false;
j++;
for (int i = 0; i < paths.length - j; i++) {
if (depths[i] > depths[i + 1]) {
if (depths[i] < depths[i + 1]) {
tmp = paths[i];
tmp2 = depths[i];
paths[i] = paths[i + 1];
Expand Down

0 comments on commit c2db42b

Please sign in to comment.