Fix #201: add rising filter and remove sort code