Let's say I have a collection products with the following values for "name":
- Awesome sneakers
- Boring Umbrella
- 420 product
The following code:
@products.reorder('name ASC') # I really need to use reorder in my code
will list the results as-is:
- 420 product
- Awesome sneakers
- Boring Umbrella
What should I tweak in reorder()
to have the following order:
- Awesome sneakers
- Boring Umbrella
- 420 product