summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/plugins
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-02 19:43:07 +0000
committerPaul Phillips <paulp@improving.org>2010-02-02 19:43:07 +0000
commit4aeae5f9c7aea8874965539f730e9abaa077729d (patch)
treefbc62a7100cd4f143011d0deaec2880efe5a760a /src/compiler/scala/tools/nsc/plugins
parentc8203f123f44057233cca331ceb2b823a1b67e6f (diff)
downloadscala-4aeae5f9c7aea8874965539f730e9abaa077729d.tar.gz
scala-4aeae5f9c7aea8874965539f730e9abaa077729d.tar.bz2
scala-4aeae5f9c7aea8874965539f730e9abaa077729d.zip
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.)
Diffstat (limited to 'src/compiler/scala/tools/nsc/plugins')
-rw-r--r--src/compiler/scala/tools/nsc/plugins/Plugin.scala4
1 files changed, 2 insertions, 2 deletions
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)