changed sorting key, hooked up sort button