add sort by options to in line  forum. Fixes #230
fix pep8