sort_notify.py: renamed sort-notify to sort_notify

Renamed sort-notify to sort_notify and improved various parts of the
code.