Ordering by Heart count
-
Hi,
This is an issue that’s been happening for a while. I have many places where I display my posts in order of heart votes. This works great, except for one thing: as soon as the number adds a decimal place, it goes out of order. The order would look like this:
1, 10, 2, 3, 4, 5, 6, 7, 8, 9… etc. OR, when it gets to 100 it would go: 10, 100, 101, 102, 11, 12, etc.
It appears that the database is saving these numbers incorrectly.
Help would be appreciated!
The topic ‘Ordering by Heart count’ is closed to new replies.