From 4aeae5f9c7aea8874965539f730e9abaa077729d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 2 Feb 2010 19:43:07 +0000 Subject: Took a swing at sorting out sorting. rewriting the Sorting methods to accept Orderings and adding a sorted method to SeqLike, because we should all be pretty tired of writing ".sortWith(_ < _)" by now. I think it should be called "sort", not "sorted", but that refuses to coexist gracefully with the deprecated sort in List. Review by moors (chosen pretty arbitrarily, someone at epfl should review it but I don't know who deserves the nomination.) --- src/compiler/scala/tools/nsc/plugins/Plugin.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/scala/tools/nsc/plugins') diff --git a/src/compiler/scala/tools/nsc/plugins/Plugin.scala b/src/compiler/scala/tools/nsc/plugins/Plugin.scala index d3b5c0a22d..92dcd6c534 100644 --- a/src/compiler/scala/tools/nsc/plugins/Plugin.scala +++ b/src/compiler/scala/tools/nsc/plugins/Plugin.scala @@ -133,8 +133,8 @@ object Plugin { { val alljars = jars ::: (for { dir <- dirs if dir.isDirectory - entry <- dir.toDirectory.files.toList sortWith (_.name <= _.name) - if entry.name.toLowerCase endsWith ".jar" + entry <- dir.toDirectory.files.toList sortBy (_.name) + if entry.extension == "jar" pdesc <- loadDescription(entry) if !(ignoring contains pdesc.name) } yield entry) -- cgit v1.2.3