simple sorting and a click handler test