js sorting of event series tables