Skip to content

Commit

Permalink
BearMenu: List bears in ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
arafsheikh committed Jul 15, 2016
1 parent 555e68f commit 3abe286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions com.coala.core/src/com/coala/core/menu/BearMenu.java
Expand Up @@ -15,6 +15,7 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;

public class BearMenu extends ContributionItem {

Expand Down Expand Up @@ -59,6 +60,7 @@ private ArrayList<String> getBears() throws ExecuteException, IOException {
for (int i = 0; i < bearList.length(); i++) {
bearNames.add(bearList.getJSONObject(i).getString("name"));
}
Collections.reverse(bearNames);
return bearNames;
}
}

0 comments on commit 3abe286

Please sign in to comment.