[BUG] The Postgres node retrieves the conversation history in a non-chronological order. This mixed-up history confuses the AI agent

I have no option to sort them by date in the postgres node. Maybe i dont see it? Do you know of something like this?

Im trying to keep my conversations and context in supabase since all of my chat is stored there, i have a table that makes sure i dont double respond to messages etc.

Do you think there is an option or just getting the datatable from n8n? =/