pageable多字段排序问题

Posted sonder

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pageable多字段排序问题相关的知识,希望对你有一定的参考价值。

Sort sort = new Sort(Sort.Direction.DESC, "createdate")
 .and(new Sort(Sort.Direction.AES, "id"));
Pageable pageable = new PageRequest(1, 10, sort)

技术分享图片

 

以上是关于pageable多字段排序问题的主要内容,如果未能解决你的问题,请参考以下文章