Home Sorting records by DESC in development works well but in production doesn't work
Reply: 0

Sorting records by DESC in development works well but in production doesn't work

Peter Nguyen
1#
Peter Nguyen Published in 2018-01-12 08:05:09Z

I use the same database mysql2 for both development and production, but when sorting records by desc, only the development environment works, it doesn't work in production environment. Can anyone let me know which caused the problem and the solution for it?

For example:

User.order("score desc")

In development, I will get all users from highest score to lowest. But in production, it doesn't work.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301456 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO