Fix bug that .order breaks the order of original records#197
Fix bug that .order breaks the order of original records#197ytakhs wants to merge 1 commit intoactive-hash:masterfrom
Conversation
|
With this implementation, I wonder if we need aside: this implementation is getting closer to active record's implementation of sorting. that is good |
|
I'm wondering what the status of this PR is? I've been affected by #193, and have kept using version 2.3 to avoid this bug, but I am now needing to upgrade to Ruby 3. Could this PR be moved along (or closed if it is not the correct way to solve the issue?) |
|
@littleforest how did you end up addressing your problem? We are in the same situation right now, reliant on an old branch but need to upgrade ruby |
|
@castlese I just redefined the Also, I do seem to still be using version 2.3 in one of my Ruby 3 apps, so you don't necessarily need to upgrade I don't think. |
|
Thank you for helping us with this solution. Going with #268 instead |
This PR fixes #193
#filter_all_records_by_query_hashreturns all_records without copy whenquery_hashis empty, soArray#sort!breaks the order of original records.Thanks.