fix: make sure events are sorted

This commit is contained in:
evilsocket 2018-01-29 14:20:24 +01:00
parent 9e36f55aa4
commit 5d3381fc76
3 changed files with 14 additions and 2 deletions

View file

@ -31,7 +31,7 @@ func RunRestCommand(c *gin.Context) {
func ShowRestEvents(c *gin.Context) {
var err error
events := session.I.Events.Events()
events := session.I.Events.Sorted()
nmax := len(events)
n := nmax