若前端传排序字段。则为sort=weight,sequence,desc&sort=extra,asc&sort=id,desc
针对Spring Boot 2.1及之前
Sort sort = new Sort(Sort.Direction.DESC, "createdate")
.and(new Sort(Sort.Direction.AES, "id"));
Pageable pageable = new PageRequest(1, 10, sort)
针对Spring Boot 2.2及之后
var sort = Sort.by(Sort.Direction.DESC, "weight", "sequence")
.and(Sort.by(Sort.Direction.ASC, "extra"))
.and(Sort.by(Sort.Direction.DESC, "id"));
var pageNumber = pageable.getPageNumber();
var pageSize = pageable.getPageSize();
return PageRequest.of(pageNumber, pageSize, sort);