fixed appstore sort for no identifier case
@@ -19,7 +19,7 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
-__version__ = "v4.3.0"
+__version__ = "v4.3.1"
__date__ = "11/Oct/2017"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
@@ -403,7 +403,9 @@ class BrewInfo:
self.tap_casks.sort()
self.gem_list.sort()
- self.appstore_list.sort(key=lambda x: x.split()[1].lower())
+ self.appstore_list.sort(
+ key=lambda x: x.split()[1].lower() if len(x.split()) > 1
+ else x.split()[0])
def get(self, name):
import copy
