Skip to content

Commit

Permalink
Merge pull request #37 from srz-zumix/feature/sort_lang
Browse files Browse the repository at this point in the history
sort language
  • Loading branch information
srz-zumix authored Mar 20, 2021
2 parents 5d0552a + d929479 commit 5a7d5ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wandbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'srz_zumix'
__version__ = '0.9.20'
__version__ = '0.9.21'

__copyright__ = '2014-2021 %s ' % __author__
__license__ = """
Expand Down
2 changes: 2 additions & 0 deletions wandbox/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import json
import traceback
import fnmatch
import operator

from . import __version__ as VERSION
from .wandbox import Wandbox
Expand Down Expand Up @@ -51,6 +52,7 @@ def command_lang(self, args):

def command_compiler(self, args):
r = self.get_compiler_list(args.retry, args.retry_wait)
r = sorted(r, key=operator.itemgetter('language'))
for d in r:
if args.language:
if args.language == d['language']:
Expand Down

0 comments on commit 5a7d5ce

Please sign in to comment.