SyntaxFix
Write A Post
Hire A Developer
Questions
Simple way:
repository.findAll(Sort.by(Sort.Direction.DESC, "colName"));
Source: https://www.baeldung.com/spring-data-sorting