Skip to content

Commit

Permalink
Order alerts by time
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 26, 2017
1 parent 9704da4 commit b2697f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/P6lert/Model/Alerts.pm6
Expand Up @@ -42,8 +42,8 @@ method add (
}
}

method all { # ORDER BY time DESC
given $!dbh.prepare: SELECT * FROM alerts {
method all {
given $!dbh.prepare: SELECT * FROM alerts ORDER BY time DESC {
LEAVE .finish;
.execute;
eager .allrows(:array-of-hash).map: { P6lert::Alert.new: |$_ }
Expand Down

0 comments on commit b2697f1

Please sign in to comment.