Skip to content

Commit

Permalink
UI: Monitoring / Storage Commitments: sort list by descending Update…
Browse files Browse the repository at this point in the history
…d time (stgcmt_result.updated_time) fix #4262
  • Loading branch information
gunterze committed Oct 18, 2023
1 parent f7f3997 commit 38c74ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public List<StgCmtResult> listStgCmts(StgCmtResultQueryParam queryParam, int off
List<Predicate> predicates = queryBuilder.stgCmtResultPredicates(stgCmtResult, queryParam);
if (!predicates.isEmpty())
q.where(predicates.toArray(new Predicate[0]));
q.orderBy(cb.desc(stgCmtResult.get(StgCmtResult_.updatedTime)));
TypedQuery<StgCmtResult> query = em.createQuery(q);
if (offset > 0)
query.setFirstResult(offset);
Expand Down

0 comments on commit 38c74ce

Please sign in to comment.