sort by Descending &Ascending order

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

Comments