Skip to content

Commit

Permalink
Sort jobs descending (except waiting)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrchz committed Nov 11, 2017
1 parent d048855 commit 662586e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serverLib.sml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ in
in loop () end
end

val waiting = read_list "waiting"
val waiting = List.rev o read_list "waiting"
val running = read_list "running"
val stopped = read_list "stopped"
val errored = read_list "errored"
Expand Down
2 changes: 1 addition & 1 deletion utilLib.sml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ structure utilLib = struct

fun insert x [] = [x]
| insert x (y::xs) =
if x <= y then x::y::xs
if x >= y then x::y::xs
else y::(insert x xs)

val until_space =
Expand Down

0 comments on commit 662586e

Please sign in to comment.