Skip to content

Commit

Permalink
Sort annotations when dumping to json
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Hu committed Jul 23, 2012
1 parent bfbf54c commit 2ce7618
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object JsonAdapter extends Adapter {
s.serviceNames,
s.firstAnnotation.get.timestamp,
s.duration.get,
s.annotations,
s.annotations.sortWith((a,b) => a.timestamp < b.timestamp),
s.binaryAnnotations.map(JsonAdapter(_)))
}

Expand Down

0 comments on commit 2ce7618

Please sign in to comment.