---
title: "Comment by Banabas Ave Abadu on \"Turbocharged Code: Unlocking a 150X Faster Response Time Revolution!\" | Hashnode"
description: "Shouldn't the simplifiedList response be sorted before extracting the sublist to be sure of consistent results. Or is this handled in the customQuery"
url: "https://hashnode.com/posts/turbocharged-code-unlocking-a-150x-faster-response-time-revolution/675a8e6b7133f8c0223687db/comment/67601d58101d8b69e85fa17f"
---

[Discussion](https://hashnode.com/posts/turbocharged-code-unlocking-a-150x-faster-response-time-revolution/675a8e6b7133f8c0223687db)

Comment [Turbocharged Code: Unlocking a 150X Faster Response Time Revolution!](https://hashnode.com/posts/turbocharged-code-unlocking-a-150x-faster-response-time-revolution/675a8e6b7133f8c0223687db)

[Banabas Ave Abadu](https://hashnode.com/@ave0)

[Dec 16, 2024](https://hashnode.com/posts/turbocharged-code-unlocking-a-150x-faster-response-time-revolution/675a8e6b7133f8c0223687db/comment/67601d58101d8b69e85fa17f)

Shouldn't the simplifiedList response be sorted before extracting the sublist to be sure of consistent results. Or is this handled in the customQuery

[Rodney Boachie](https://hashnode.com/@ace-rbk)

[Dec 16, 2024](https://hashnode.com/posts/turbocharged-code-unlocking-a-150x-faster-response-time-revolution/675a8e6b7133f8c0223687db/comment/67601d58101d8b69e85fa17f#reply-67602238896fc7945d7557b0)

Not very clear on the question but there is a countQuery variable that took the same sql query but with a count instead to handle pagination. Also, the sorting is based of what the client request contains but there is a default in the sql too for situations where the client doesn't specify.
