Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
sort by numeric instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew committed Jan 9, 2013
1 parent 4a057df commit 75da63a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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)
}
Expand Down

0 comments on commit 75da63a

Please sign in to comment.