Move sorting of discussions to UTIL
move selection of discussions into tablemodel
fix #72 (also #73 is still a problem)