I found a really strange thing related to postgresql. Here is my query:
select *
from "bids"
inner join "users" on "users"."id" = "bids"."userId"
where "auctionId" = 151
And here is a result:
So, as you see, rows are sorted in descending order by id. If I add ordering in query:
select *
from "bids"
inner join "users" on "users"."id" = "bids"."userId"
where "auctionId" = 151
order by "bids"."id" asc
I get a result:
It looks like one of database settings was set incorrectly, but I couldn't find it in google. Please, put your thoughts here, any help is welcome.
Thanks.