Completely revamped the item_order mechanism. Old code in DBQueries left commented out until new code proves itself in the field.
In the item_order system, added support for the case when the secondary ordering field can be null.
In the item_order system, added missing support for some cases when the secondary ordering field can be null.
Cleaned up commented code.