Spring Data Jpa findAll () sorting and paging problem

Page<T> page = dao.findAll(getInputCondition(vo), pageRequest);


private Predicate getInputCondition(T vo) {
    List<BooleanExpression> predicates = new ArrayList<>();
    if (null != vo) {
        if (!StringUtils.isEmpty(vo.getSkuNo())) {
            predicates.add(QSkuInfo.skuInfo.skuNo.eq(vo.getSkuNo()));
        }    
    }
    return BooleanExpression.allOf(predicates.toArray(new 
    BooleanExpression[predicates.size()]));
  }

when using findAll, either Predicate and sort are not passed, or there is no sorting.
how to sort a field on this basis

Mar.05,2021

pageRequest can pass sorting Sort object when it is created ~

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b372bb-410b2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b372bb-410b2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?