added sorting functionality to standings table