Replaces broken sorting logic in queue_updates with similar code to queue_apps.
(queue_apps only does waiting time desc - other sorts are broken)
Merge pull request #2057 from eviljeff/974544b

Replaces broken sorting logic in queue_updates with similar code to queue_apps.