Currently, smileys are sorted by weight only. This means that the order that they appear in a .pak file is not kept, as they will not get into the DB in that exact row order. By changing the code from "ORDER BY weight" to "ORDER BY weight, id" same-weight items will appear in the order that they were in the .pak file.

An example use is the use of smileys to allow users to post game "builds" - one smiley per option available, in this particular case "Mercenaries" for the game "Atlantica". When using "ORDER BY weight, id" they follow the (deliberate) order in the .pak file.

Comments

Gurpartap Singh’s picture

Status: Active » Postponed (maintainer needs more info)

I tried your change to the included Example package, but to no effect. :S

emdalton’s picture

Version: 6.x-1.0-alpha5 » 6.x-1.0
Status: Postponed (maintainer needs more info) » Active

I can't get smileys to sort by anything except their text. Is this functionality that changed somewhere along the way?