Skip to content

Commit

Permalink
changed sorting of all streams query
Browse files Browse the repository at this point in the history
  • Loading branch information
Blechkelle committed Oct 2, 2019
1 parent 219dc5d commit 9258a34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public StreamEntity getLatestStreamEntityOfUser(User user) {

public List<StreamEntity> getAllStreamsByUser(User user) {
List<StreamEntity> streams = store.createQuery(StreamEntity.class)
.field("user").equal(user.getId()).asList();
.field("user").equal(user.getId()).order("-startedAt").asList();
if (streams.size() == 0) {
return new ArrayList<>();
}
Expand Down

0 comments on commit 9258a34

Please sign in to comment.