Change list-resources order

This commit is contained in:
Arne Keller 2020-03-11 10:55:06 +01:00
parent 1fecffad38
commit c058aeadde
3 changed files with 36 additions and 36 deletions

View File

@ -49,38 +49,6 @@ metal
metal metal
metal metal
metal metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
wood wood
wood wood
wood wood
@ -97,6 +65,38 @@ wood
wood wood
wood wood
wood wood
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
axe axe
club club
fireplace fireplace

View File

@ -5,12 +5,12 @@ plastic
wood wood
metal metal
plastic plastic
plastic
metal
wood wood
plastic
metal metal
plastic
wood wood
metal
plastic
EMPTY EMPTY
shack shack
OK OK

View File

@ -17,7 +17,7 @@ public final class ListResources extends Command {
if (resources.isEmpty()) { if (resources.isEmpty()) {
Terminal.printLine("EMPTY"); Terminal.printLine("EMPTY");
} else { } else {
resources.descendingIterator().forEachRemaining(Terminal::printLine); resources.forEach(Terminal::printLine);
} }
} }