Skip to content

Commit

Permalink
fix: order latest to oldest versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMcShane committed Jan 22, 2019
1 parent 213e7d9 commit 363b90c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DependenciesController @Inject()(mcc: MessagesControllerComponents,
} yield
(deployments, serviceDependencies) match {
case (Left(t), _) => ServiceUnavailable(t.getMessage)
case (_, sd) => Ok(dependenciesPage(name, sd))
case (_, sd) => Ok(dependenciesPage(name, sd.sortBy(_.version)(Ordering[Option[String]].reverse)))
}
}
}

0 comments on commit 363b90c

Please sign in to comment.