Revert change on the JS code used to sort items on the list tile (fixes #413)

This change was introduced on 268b394c45af098a715c389cc4740410c810c2b8 to make the code compatible with jQuery 1.9+.