Describe the bug
The recently executed query is appended to the end of the query history, which should be displayed at the top instead of the last position in the query history.
To Reproduce
-Execute a query.
-Execute another query.
-Observe the position of the last executed query in the query history.
Expected behavior
The recently executed query should be displayed at the top of the query history.
Describe the bug The recently executed query is appended to the end of the query history, which should be displayed at the top instead of the last position in the query history.
To Reproduce -Execute a query. -Execute another query. -Observe the position of the last executed query in the query history.
Expected behavior The recently executed query should be displayed at the top of the query history.
Screenshots
https://github.com/janvi01/sql-editor/assets/80145855/f3665412-ef69-4370-a916-441776c25b0f
Fixes #51