Skip to content

Commit

Permalink
sort output
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 10, 2020
1 parent 039d7c6 commit 001f61b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import javax.imageio.ImageIO;
Expand Down Expand Up @@ -178,7 +179,9 @@ public static void saveAll() throws IOException {

private static void collectStatistics(final BrowserVersion browserVersion, final DefaultCategoryDataset dataset,
final StringBuilder html, final int[] counts) {
for (final Method method :ElementPropertiesTest.class.getMethods()) {
final Method[] methods = ElementPropertiesTest.class.getMethods();
Arrays.sort(methods, Comparator.comparing(Method::getName));
for (final Method method : methods) {
if (method.isAnnotationPresent(Test.class)) {

final Alerts alerts = method.getAnnotation(Alerts.class);
Expand Down

0 comments on commit 001f61b

Please sign in to comment.