Skip to content

Commit

Permalink
[14626] added sorting when preparing orders for print
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas authored and ngiger committed Nov 6, 2018
1 parent 9218027 commit 5556b22
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ private List<BestellungEntry> prepareOrderList(Kontakt receiver){
best.add(bestellungEntry);
}
}
best.sort((BestellungEntry left, BestellungEntry right) -> {
String s1 = left.getArticle().getName();
String s2 = right.getArticle().getName();
return s1.compareTo(s2);
});
return best;
}

Expand Down

0 comments on commit 5556b22

Please sign in to comment.