Permalink
Browse files

sort by numeric instead of string

  • Loading branch information...
1 parent 4a057df commit 75da63a782a3e5b04101d2e8b8233040886f9e0d matthew committed Jan 9, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/scala/com/foursquare/oozie/dashboard/OozieDashboard.scala
@@ -156,7 +156,8 @@ class OozieDashboard() extends ScalatraServlet with ScalateSupport {
case Some(id) => {
// TODO (rathbone): fix all getCoordJobInfo calls to return *all* actions, not just the first 1000
val job = oozie.getCoordJobInfo(id, 0, 1000)
- job.getActions.asScala.sortBy(_.getId).reverse.slice(0, 3).map(_.getStatus.toString).mkString(",")
+
+ job.getActions.asScala.sortBy(_.getActionNumber).reverse.slice(0, 3).map(_.getStatus.toString).mkString(",")
}
case _ => halt(404)
}

0 comments on commit 75da63a

Please sign in to comment.