sort by Descending &Ascending order

 List<DistributorAllot> distributorAllots=distributorAllotRepo.findAll(Sort.by(Sort.Direction.DESC,"id"));

Comments

Popular posts from this blog

javascript and thymeleaf

Thymeleaf + Spring Security integration basics

Text inlining in HTML, CSS, JAVASCRIPT