sorting of standings table working