Skip to content

Commit

Permalink
• if bundle names are identical in the list sort them additionally by…
Browse files Browse the repository at this point in the history
… Official > Review > Third Party

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle@11060 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
bibiko committed Dec 22, 2008
1 parent 0259b25 commit 524ad57
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Support/getBundles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,6 @@ def checkSources

def getBundleLists

begin

# only to speed up the init process
$locBundlesThread = Thread.new { buildLocalBundleList }

Expand Down Expand Up @@ -383,7 +381,7 @@ def getBundleLists
end

# sort the cache first against name then against host
$bundleCache['bundles'].sort!{|a,b| (n = a['name'].downcase <=> b['name'].downcase).zero? ? a['status'] <=> b['status'] : n}
$bundleCache['bundles'].sort!{|a,b| (n = a['name'].downcase <=> b['name'].downcase).zero? ? a['status'].reverse <=> b['status'].reverse : n}

# wait for parsing local bundles
$params['isBusy'] = true
Expand Down Expand Up @@ -497,9 +495,6 @@ def getBundleLists

# suppress the updating of the table to preserve the selection
$params.delete('dataarray')
rescue
writeTimedMessage("Error while initialization:\n#{$!}")
end

end

Expand Down

0 comments on commit 524ad57

Please sign in to comment.