title: How to define direction in request with pageable parameter?
body: <p>I have a query that takes pageable as a parameter. I define the direction as DESC but this takes no effect. This is my request. Could you please help me formulate the requests in a way that the results come back sorted in descending order?
  I have posted my request in the  picture below. It works but it does not sort the results</p>
  <p>Thank you
  <a href="https://i.stack.imgur.com/qt0t0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qt0t0.png" alt="enter image description here" /></a></p>
  <p>This is the controller code:</p>
  <pre><code>@GetMapping
  fun listMessages(@RequestParam conversationRef: String,
                   @RequestParam fromDate: Instant, @RequestParam toDate: Instant, 
                   pageable: Pageable): PaginatedCollection&lt;MessageVO&gt; {
                       return messageService.listAll(fromDate, toDate, pageable, 
                                conversationRef).data ?: PaginatedCollection(listOf(), 
                                PaginationVO.build(), SortVO.build())
  }
  </code></pre>