标签: java mysql spring-data
我正尝试在Spring Data for Practice对象中设置相同的顺序,如下所示:
select * from practice order by FIELD(id, 5, 2, 1, 8, 3) desc
现在,我可以设置类似
new Sort.Order(Sort.Direction.DESC, "id")
我该如何实现?