waiting list is now working.

Sorting of the waiting list is still not proper
Sorting now works as required

The Bug fix was a big one. Will have to add in the final copy we install
at BBT
Wroking copy