sorting list activated and deactivated properly
Issue #79