hyperstack-org / hyperstack-org/hyperstack

has_many relationships do not guarantee sort order

Open
#131 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
538
Forks
41
PR merge metrics
No merged PRs in 30d

Description

for example:

if this is executed on the client

```ruby
p = Picture.find(1)
p.imageable = Product.find(1)
p.save
```

Product.find(1) will be at the end of the list (if the collection was already loaded)
but
if you do this on the server the order (by default) is the created_by.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.